Explorar o código

Merge pull request #24921 from KidRigger/pr-fix

Fixed infinite loop at end of video.
Rémi Verschelde %!s(int64=6) %!d(string=hai) anos
pai
achega
b50f792a65
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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();
 	}