Bug 727694. Set up new mDecoderStateMachine with any preset initial volume. r=cpearce

This commit is contained in:
Robert O'Callahan 2012-02-16 17:17:36 +13:00
parent bc3719b007
commit affe790e91

View File

@ -216,6 +216,7 @@ nsresult nsBuiltinDecoder::Load(MediaResource* aResource,
ReentrantMonitorAutoEnter mon(mReentrantMonitor);
mDecoderStateMachine->SetSeekable(mSeekable);
mDecoderStateMachine->SetDuration(mDuration);
mDecoderStateMachine->SetVolume(mInitialVolume);
if (mFrameBufferLength > 0) {
// The valid mFrameBufferLength value was specified earlier