Browse Source

Merge pull request #24921 from KidRigger/pr-fix

Fixed infinite loop at end of video.
Rémi Verschelde 6 năm trước cách đây
mục cha
commit
b50f792a65
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  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();
 	}