Преглед изворни кода

Merge pull request #24921 from KidRigger/pr-fix

Fixed infinite loop at end of video.
Rémi Verschelde пре 6 година
родитељ
комит
b50f792a65
1 измењених фајлова са 1 додато и 1 уклоњено
  1. 1 1
      modules/gdnative/videodecoder/video_stream_gdnative.cpp

+ 1 - 1
modules/gdnative/videodecoder/video_stream_gdnative.cpp

@@ -164,7 +164,7 @@ void VideoStreamPlaybackGDNative::update(float p_delta) {
 		}
 	}
 
-	while (interface->get_playback_position(data_struct) < time) {
+	while (interface->get_playback_position(data_struct) < time && playing) {
 
 		update_texture();
 	}