Bug 1328811. Part 1 - remove the assertion. r=kaku

http://searchfox.org/mozilla-central/rev/82ebc0c5ea45477ef4a4bfb3bbff35069bd18cee/dom/media/MediaDecoderStateMachine.cpp#2980
The if statement ensures |mState != DECODER_STATE_COMPLETED|.

MozReview-Commit-ID: CyvfXj94E8s

--HG--
extra : rebase_source : 10007fda9e4c09647a7142b77415c332a69001b3
extra : source : 5936c72d33e155a2a942602b610e6d6407f9bef6
This commit is contained in:
JW Wang 2017-01-05 14:38:52 +08:00
Родитель da1657f4f3
Коммит ba927c6dfe
1 изменённых файлов: 0 добавлений и 4 удалений

Просмотреть файл

@ -2991,10 +2991,6 @@ MediaDecoderStateMachine::DispatchDecodeTasksIfNeeded()
const bool needToDecodeAudio = NeedToDecodeAudio();
const bool needToDecodeVideo = NeedToDecodeVideo();
// If we're in completed state, we should not need to decode anything else.
MOZ_ASSERT(mState != DECODER_STATE_COMPLETED ||
(!needToDecodeAudio && !needToDecodeVideo));
SAMPLE_LOG("DispatchDecodeTasksIfNeeded needAudio=%d audioStatus=%s needVideo=%d videoStatus=%s",
needToDecodeAudio, AudioRequestStatus(),
needToDecodeVideo, VideoRequestStatus());