You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-12 13:20:55 +00:00
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
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user