Closed Bug 1173657 Opened 6 years ago Closed 6 years ago
Format Reader should drain its decoder when encountering waiting for data error
When the MediaFormatReader attempt to demux a frame, but the demuxer returns WAITING_FOR_DATA, it rejects the promise and enter wait mode (giving the MDSM a WaitingPromise). It should attempt to drain the decoder first prior to rejecting the promise as there may be queued decoded frames ready to be output by the decoder.
Blocking bug 1171379, as if we don't drain, the waiting event will be fired on a different time than what test_WaitingOnMissingData_mp4.html expects.
A discontinuity can be when waiting for data, decoding error or reaching end of stream.
Attachment #8632684 - Flags: review?(cpearce)
Attachment #8632684 - Flags: review?(cpearce) → review+
You need to log in before you can comment on or make changes to this bug.