Bug 1090983 - Invoke UpdateReadyState() after invoking SetState(). r=cpearce

Otherwise, UpdateReadyState() will think that nothing has changed.
This commit is contained in:
Bobby Holley 2014-10-30 09:16:02 +01:00
parent fba51e4e4e
commit 3bea4bdef3

View File

@ -2975,8 +2975,8 @@ void MediaDecoderStateMachine::StartBuffering()
// we just trigger UpdateReadyStateForData; when it runs, it
// will check the current state and decide whether to tell
// the element we're buffering or not.
UpdateReadyState();
SetState(DECODER_STATE_BUFFERING);
UpdateReadyState();
DECODER_LOG("Changed state from DECODING to BUFFERING, decoded for %.3lfs",
decodeDuration.ToSeconds());
#ifdef PR_LOGGING