Bug 792935 - Restore correct playState after state machine initialization r=cpearce

This commit is contained in:
Steve Workman 2013-01-23 11:24:42 -08:00
Родитель f38b11cfe2
Коммит ce4a2eb977
1 изменённых файлов: 6 добавлений и 0 удалений

Просмотреть файл

@ -631,6 +631,12 @@ DASHDecoder::LoadRepresentations()
mVideoRepDecoders[i]->SetStateMachine(mDecoderStateMachine);
}
}
// Ensure decoder is set to play if its already been requested.
if (mPlayState == PLAY_STATE_PLAYING) {
mNextState = PLAY_STATE_PLAYING;
}
// Now that subreaders are init'd, it's ok to init state machine.
return InitializeStateMachine(nullptr);
}