зеркало из https://github.com/mozilla/gecko-dev.git
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:
Родитель
ea56636cdf
Коммит
fa812dc154
|
@ -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.");
|
||||
|
|
Загрузка…
Ссылка в новой задаче