From 270bc93b9577062b8c908b8932a01cde7bba5b33 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=BB=8A=E4=BA=95=E3=81=8D=E3=81=AA=E3=81=BF?= Date: Mon, 5 Jun 2023 00:32:16 +0200 Subject: [PATCH] Fix VideoStreamPlayer seamless loop --- scene/gui/video_stream_player.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/scene/gui/video_stream_player.cpp b/scene/gui/video_stream_player.cpp index 1f3bbff779e..1381e5be89c 100644 --- a/scene/gui/video_stream_player.cpp +++ b/scene/gui/video_stream_player.cpp @@ -281,6 +281,9 @@ void VideoStreamPlayer::play() { set_process_internal(true); last_audio_time = 0; + // We update the playback to render the first frame immediately. + playback->update(0); + if (!can_process()) { _notification(NOTIFICATION_PAUSED); }