mirror of
https://github.com/roytam1/palemoon27.git
synced 2026-05-26 14:18:48 +00:00
Guard against early states in UpdateNextFrameStatus
This commit is contained in:
@@ -3229,7 +3229,10 @@ void MediaDecoderStateMachine::UpdateNextFrameStatus()
|
||||
|
||||
MediaDecoderOwner::NextFrameStatus status;
|
||||
const char* statusString;
|
||||
if (IsBuffering()) {
|
||||
if (mState <= DECODER_STATE_DECODING_FIRSTFRAME) {
|
||||
status = MediaDecoderOwner::NEXT_FRAME_UNAVAILABLE;
|
||||
statusString = "NEXT_FRAME_UNAVAILABLE";
|
||||
} else if (IsBuffering()) {
|
||||
status = MediaDecoderOwner::NEXT_FRAME_UNAVAILABLE_BUFFERING;
|
||||
statusString = "NEXT_FRAME_UNAVAILABLE_BUFFERING";
|
||||
} else if (IsSeeking()) {
|
||||
|
||||
Reference in New Issue
Block a user