Bug 1156708: Part5. Don't ignore DrainComplete() on first demux. r=me

Followup on part4 (7ab507ec07cb) which introduce this regression.
This commit is contained in:
Jean-Yves Avenard 2015-05-18 16:58:55 +10:00
parent b90f6b5dcc
commit 406d810b42

View File

@ -901,6 +901,7 @@ MediaFormatReader::Update(TrackType aTrack)
LOGV("Update(%s) ni=%d no=%d", TrackTypeToStr(aTrack), needInput, needOutput);
if (decoder.mDemuxEOS && !decoder.mDemuxEOSServiced) {
decoder.mOutputRequested = true;
decoder.mDecoder->Drain();
decoder.mDemuxEOSServiced = true;
}