From d444b36c2d10ac8e7bb9ec4f43d5f70d3678cdbc Mon Sep 17 00:00:00 2001 From: Paul Adenot Date: Thu, 30 Sep 2021 12:36:12 +0000 Subject: [PATCH] Bug 1733109 - do not use 'else' after 'return' in MediaDecoder.cpp. r=bryce Depends on D126928 Differential Revision: https://phabricator.services.mozilla.com/D126929 --- dom/media/MediaDecoder.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/dom/media/MediaDecoder.cpp b/dom/media/MediaDecoder.cpp index dbb2a719070b..619c9c0fc575 100644 --- a/dom/media/MediaDecoder.cpp +++ b/dom/media/MediaDecoder.cpp @@ -579,7 +579,9 @@ void MediaDecoder::Play() { if (IsEnded()) { Seek(0, SeekTarget::PrevSyncPoint); return; - } else if (mPlayState == PLAY_STATE_LOADING) { + } + + if (mPlayState == PLAY_STATE_LOADING) { mNextState = PLAY_STATE_PLAYING; return; }