فهرست منبع

Merge pull request #103396 from berarma/vsp_clean_exit_tree

VideoStreamPlayer: Stop video on exit tree
Rémi Verschelde 6 ماه پیش
والد
کامیت
f3fe36289b
1فایلهای تغییر یافته به همراه1 افزوده شده و 0 حذف شده
  1. 1 0
      scene/gui/video_stream_player.cpp

+ 1 - 0
scene/gui/video_stream_player.cpp

@@ -136,6 +136,7 @@ void VideoStreamPlayer::_notification(int p_notification) {
 		} break;
 
 		case NOTIFICATION_EXIT_TREE: {
+			stop();
 			AudioServer::get_singleton()->remove_mix_callback(_mix_audios, this);
 		} break;