mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 1123669 - Reset mDrainComplete flag and implement overridden flush() for audio. r=ajones
This commit is contained in:
parent
b675f67bd3
commit
0f9769a61f
@ -247,4 +247,14 @@ void GonkAudioDecoderManager::ReleaseAudioBuffer() {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
nsresult
|
||||||
|
GonkAudioDecoderManager::Flush()
|
||||||
|
{
|
||||||
|
GonkDecoderManager::Flush();
|
||||||
|
status_t err = mDecoder->flush();
|
||||||
|
if (err != OK) {
|
||||||
|
return NS_ERROR_FAILURE;
|
||||||
|
}
|
||||||
|
return NS_OK;
|
||||||
|
}
|
||||||
} // namespace mozilla
|
} // namespace mozilla
|
||||||
|
@ -32,6 +32,8 @@ public:
|
|||||||
virtual nsresult Output(int64_t aStreamOffset,
|
virtual nsresult Output(int64_t aStreamOffset,
|
||||||
nsRefPtr<MediaData>& aOutput) MOZ_OVERRIDE;
|
nsRefPtr<MediaData>& aOutput) MOZ_OVERRIDE;
|
||||||
|
|
||||||
|
virtual nsresult Flush() MOZ_OVERRIDE;
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
virtual bool PerformFormatSpecificProcess(mp4_demuxer::MP4Sample* aSample) MOZ_OVERRIDE;
|
virtual bool PerformFormatSpecificProcess(mp4_demuxer::MP4Sample* aSample) MOZ_OVERRIDE;
|
||||||
|
|
||||||
|
@ -234,7 +234,7 @@ GonkMediaDataDecoder::Flush()
|
|||||||
// it's executing at all. Note the MP4Reader ignores all output while
|
// it's executing at all. Note the MP4Reader ignores all output while
|
||||||
// flushing.
|
// flushing.
|
||||||
mTaskQueue->Flush();
|
mTaskQueue->Flush();
|
||||||
|
mDrainComplete = false;
|
||||||
return mManager->Flush();
|
return mManager->Flush();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user