mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 1188233: Ensure drainComplete flag is set upon failure to create decoder. r=cpearce
This commit is contained in:
parent
7904f7befa
commit
b3b4eca437
@ -984,11 +984,11 @@ MediaFormatReader::DrainDecoder(TrackType aTrack)
|
||||
return;
|
||||
}
|
||||
decoder.mNeedDraining = false;
|
||||
if (!decoder.mDecoder) {
|
||||
return;
|
||||
}
|
||||
// mOutputRequest must be set, otherwise NotifyDrainComplete()
|
||||
// may reject the drain if a Flush recently occurred.
|
||||
decoder.mOutputRequested = true;
|
||||
if (decoder.mNumSamplesInput == decoder.mNumSamplesOutput) {
|
||||
if (!decoder.mDecoder ||
|
||||
decoder.mNumSamplesInput == decoder.mNumSamplesOutput) {
|
||||
// No frames to drain.
|
||||
NotifyDrainComplete(aTrack);
|
||||
return;
|
||||
|
Loading…
Reference in New Issue
Block a user