소스 검색

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();
 	}