From bd3a30649bd2be184f61d9a1b2526b351a1bcf52 Mon Sep 17 00:00:00 2001 From: Bernat Arlandis Date: Fri, 28 Feb 2025 12:58:52 +0100 Subject: [PATCH] VideoStreamPlayer: stop video on exit tree --- scene/gui/video_stream_player.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/scene/gui/video_stream_player.cpp b/scene/gui/video_stream_player.cpp index fa965179a4d..eb6aff27dc9 100644 --- a/scene/gui/video_stream_player.cpp +++ b/scene/gui/video_stream_player.cpp @@ -136,6 +136,7 @@ void VideoStreamPlayer::_notification(int p_notification) { } break; case NOTIFICATION_EXIT_TREE: { + stop(); AudioServer::get_singleton()->remove_mix_callback(_mix_audios, this); } break;