Commit 6dc32e92 authored by Robert O'Callahan's avatar Robert O'Callahan
Browse files

Bug 750258. Set intial audio capture state correctly on mDecoderStateMachine. r=cpearce

For media resources whose streams are captured before the load has started, we shouldn't even start
an audio thread. This saves a lot of resources and ensures we don't see races between the audio thread
and the code that copies packets from the audio queue to the MediaStreams.
parent 16d731f0
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -246,6 +246,7 @@ nsresult nsBuiltinDecoder::Load(MediaResource* aResource,
    mDecoderStateMachine->SetSeekable(mSeekable);
    mDecoderStateMachine->SetDuration(mDuration);
    mDecoderStateMachine->SetVolume(mInitialVolume);
    mDecoderStateMachine->SetAudioCaptured(mInitialAudioCaptured);
    
    if (mFrameBufferLength > 0) {
      // The valid mFrameBufferLength value was specified earlier