Bug 1211443 - Drop scheduled update if decoder initialization isn't done yet. r=jya

This commit is contained in:
Eugen Sawin 2015-10-19 20:11:35 +02:00
parent 74e1e7441b
commit 7f2045a065

View File

@ -1047,7 +1047,7 @@ MediaFormatReader::Update(TrackType aTrack)
{
MOZ_ASSERT(OnTaskQueue());
if (mShutdown || !mInitDone) {
if (mShutdown) {
return;
}
@ -1058,6 +1058,10 @@ MediaFormatReader::Update(TrackType aTrack)
auto& decoder = GetDecoderData(aTrack);
decoder.mUpdateScheduled = false;
if (!mInitDone) {
return;
}
if (UpdateReceivedNewData(aTrack)) {
LOGV("Nothing more to do");
return;