commit 604151875bd9071c8f47b6b89c369b5f495252bc
parent 6dbbf96ad2abb6c517e1e739297dc4f780189eea
Author: Karl Tomlinson <karlt+@karlt.net>
Date: Mon, 20 Oct 2025 23:40:18 +0000
Bug 1985195 ScheduleCheckForInactive on finished AudioNodeTrack only once r=pehrsons
Differential Revision: https://phabricator.services.mozilla.com/D268335
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/dom/media/webaudio/AudioNodeTrack.cpp b/dom/media/webaudio/AudioNodeTrack.cpp
@@ -436,7 +436,7 @@ void AudioNodeTrack::ProcessInput(GraphTime aFrom, GraphTime aTo,
NS_ASSERTION(mLastChunks[i].GetDuration() == WEBAUDIO_BLOCK_SIZE,
"Invalid WebAudio chunk size");
}
- if (finished) {
+ if (finished && !mMarkAsEndedAfterThisBlock) {
mMarkAsEndedAfterThisBlock = true;
if (mIsActive) {
ScheduleCheckForInactive();