Bug 1065827 - Start MediaDecoder playback state in LOADING. r=cpearce

This commit is contained in:
Jean-Yves Avenard 2014-10-28 20:10:08 +11:00
parent dce1292dc9
commit 30c25dc83c

View File

@ -437,7 +437,7 @@ MediaDecoder::MediaDecoder() :
mReentrantMonitor("media.decoder"),
mIsDormant(false),
mIsExitingDormant(false),
mPlayState(PLAY_STATE_PAUSED),
mPlayState(PLAY_STATE_LOADING),
mNextState(PLAY_STATE_PAUSED),
mIgnoreProgressData(false),
mInfiniteStream(false),
@ -562,8 +562,6 @@ nsresult MediaDecoder::InitializeStateMachine(MediaDecoder* aCloneDonor)
// set them now
SetStateMachineParameters();
ChangeState(PLAY_STATE_LOADING);
return ScheduleStateMachineThread();
}