зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1188233: Ensure drainComplete flag is set upon failure to create decoder. r=cpearce
This commit is contained in:
Родитель
bec365db4b
Коммит
c7b835ce08
|
@ -984,15 +984,13 @@ MediaFormatReader::DrainDecoder(TrackType aTrack)
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
decoder.mNeedDraining = false;
|
decoder.mNeedDraining = false;
|
||||||
if (!decoder.mDecoder) {
|
if (!decoder.mDecoder ||
|
||||||
return;
|
decoder.mNumSamplesInput == decoder.mNumSamplesOutput) {
|
||||||
}
|
|
||||||
decoder.mOutputRequested = true;
|
|
||||||
if (decoder.mNumSamplesInput == decoder.mNumSamplesOutput) {
|
|
||||||
// No frames to drain.
|
// No frames to drain.
|
||||||
NotifyDrainComplete(aTrack);
|
NotifyDrainComplete(aTrack);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
decoder.mOutputRequested = true;
|
||||||
decoder.mDecoder->Drain();
|
decoder.mDecoder->Drain();
|
||||||
decoder.mDraining = true;
|
decoder.mDraining = true;
|
||||||
LOG("Requesting %s decoder to drain", TrackTypeToStr(aTrack));
|
LOG("Requesting %s decoder to drain", TrackTypeToStr(aTrack));
|
||||||
|
|
Загрузка…
Ссылка в новой задаче