Merge pull request #97625 from SourceOfHTML/master

Fix `AudioStreamPlayback`'s `_stop()` not being called when `AudioStreamPlayer`'s `stop()` is called
This commit is contained in:
Rémi Verschelde 2024-10-02 15:01:13 +02:00
commit 5410000a52
No known key found for this signature in database
GPG key ID: C3336907360768E1

View file

@ -1248,6 +1248,8 @@ void AudioServer::stop_playback_stream(Ref<AudioStreamPlayback> p_playback) {
return;
}
p_playback->stop();
AudioStreamPlaybackListNode *playback_node = _find_playback_list_node(p_playback);
if (!playback_node) {
return;