Browse Source

fixes crash/deadlock when video is paused and unpaused, might affect audio sync tho

Ariel Manzur 9 năm trước cách đây
mục cha
commit
6387a8e01f
1 tập tin đã thay đổi với 1 bổ sung0 xóa
  1. 1 0
      scene/gui/video_player.cpp

+ 1 - 0
scene/gui/video_player.cpp

@@ -271,6 +271,7 @@ void VideoPlayer::set_paused(bool p_paused) {
 		playback->set_paused(p_paused);
 		set_process(!p_paused);
 	};
+	last_audio_time = 0;
 };
 
 bool VideoPlayer::is_paused() const {