summaryrefslogtreecommitdiff
path: root/modules/gdnative
diff options
context:
space:
mode:
authorAnish <anishbhobe@hotmail.com>2019-01-12 00:51:59 +0530
committerAnish <anishbhobe@hotmail.com>2019-01-12 00:51:59 +0530
commit8c1677fc3f38176ea2a986389eb1dcc511c3d100 (patch)
treeab2d32a94cbe364280624c91665fea94b7d06028 /modules/gdnative
parentbf799246fd73e95b510144a7deba338e88fc8e05 (diff)
Fixed infinite loop at end of video.
A missing condition caused infinite looping, despite the video playing flag being set to false. Small change to fix. Fixes: #20552
Diffstat (limited to 'modules/gdnative')
-rw-r--r--modules/gdnative/videodecoder/video_stream_gdnative.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/gdnative/videodecoder/video_stream_gdnative.cpp b/modules/gdnative/videodecoder/video_stream_gdnative.cpp
index 8239d57a77..a1590cef43 100644
--- a/modules/gdnative/videodecoder/video_stream_gdnative.cpp
+++ b/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();
}