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
c91fa6f09e
commit
580044166c
@ -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
|
||||
|
@ -32,6 +32,8 @@ public:
|
||||
virtual nsresult Output(int64_t aStreamOffset,
|
||||
nsRefPtr<MediaData>& aOutput) MOZ_OVERRIDE;
|
||||
|
||||
virtual nsresult Flush() MOZ_OVERRIDE;
|
||||
|
||||
protected:
|
||||
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
|
||||
// flushing.
|
||||
mTaskQueue->Flush();
|
||||
|
||||
mDrainComplete = false;
|
||||
return mManager->Flush();
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user