diff --git a/content/media/MediaDecoder.cpp b/content/media/MediaDecoder.cpp index 8a470daf07ea..d8039c63a29d 100644 --- a/content/media/MediaDecoder.cpp +++ b/content/media/MediaDecoder.cpp @@ -821,8 +821,8 @@ void MediaDecoder::PlaybackEnded() PlaybackPositionChanged(); ChangeState(PLAY_STATE_ENDED); + UpdateReadyStateForData(); if (mOwner) { - UpdateReadyStateForData(); mOwner->PlaybackEnded(); }