Bug 1056408 - Flush local task queues in AppleDecoderModule. r=cpearce

We could still have data pending submission on the local task queue
which would be submitted after we were supposed to have flushed.
This commit is contained in:
Ralph Giles 2014-08-20 16:38:00 -07:00
Родитель ea56636cdf
Коммит fa812dc154
2 изменённых файлов: 2 добавлений и 0 удалений

Просмотреть файл

@ -129,6 +129,7 @@ nsresult
AppleATDecoder::Flush()
{
LOG("Flushing AudioToolbox AAC decoder");
mTaskQueue->Flush();
OSStatus rv = AudioConverterReset(mConverter);
if (rv) {
LOG("Error %d resetting AudioConverter", rv);

Просмотреть файл

@ -111,6 +111,7 @@ AppleVTDecoder::Input(mp4_demuxer::MP4Sample* aSample)
nsresult
AppleVTDecoder::Flush()
{
mTaskQueue->Flush();
nsresult rv = WaitForAsynchronousFrames();
if (NS_FAILED(rv)) {
LOG("AppleVTDecoder::Drain failed waiting for platform decoder.");