Browse Source

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

Ariel Manzur 9 years ago
parent
commit
6387a8e01f
1 changed files with 1 additions and 0 deletions
  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);
 		playback->set_paused(p_paused);
 		set_process(!p_paused);
 		set_process(!p_paused);
 	};
 	};
+	last_audio_time = 0;
 };
 };
 
 
 bool VideoPlayer::is_paused() const {
 bool VideoPlayer::is_paused() const {