mirror of
https://github.com/roytam1/palemoon27.git
synced 2026-06-09 01:48:55 +00:00
Suppress DispatchOnAudioSinkComplete()
This commit is contained in:
@@ -257,7 +257,10 @@ AudioSink::Cleanup()
|
||||
AssertCurrentThreadInMonitor();
|
||||
nsRefPtr<AudioStream> audioStream;
|
||||
audioStream.swap(mAudioStream);
|
||||
mStateMachine->DispatchOnAudioSinkComplete();
|
||||
// Suppress the callback when the stop is requested by MediaDecoderStateMachine.
|
||||
if (!mStopAudioThread) {
|
||||
mStateMachine->DispatchOnAudioSinkComplete();
|
||||
}
|
||||
|
||||
ReentrantMonitorAutoExit exit(GetReentrantMonitor());
|
||||
audioStream->Shutdown();
|
||||
|
||||
Reference in New Issue
Block a user