Bug 1297265: P9. Rework Vorbis Decoder use of InputExhausted. r?kamidphish
MozReview-Commit-ID: 58KKxY1YcpK
--- a/dom/media/platforms/agnostic/VorbisDecoder.cpp
+++ b/dom/media/platforms/agnostic/VorbisDecoder.cpp
@@ -138,18 +138,16 @@ void
VorbisDataDecoder::ProcessDecode(MediaRawData* aSample)
{
MOZ_ASSERT(mTaskQueue->IsCurrentThreadIn());
if (mIsFlushing) {
return;
}
if (DoDecode(aSample) == -1) {
mCallback->Error(MediaDataDecoderError::DECODE_ERROR);
- } else if (mTaskQueue->IsEmpty()) {
- mCallback->InputExhausted();
}
}
int
VorbisDataDecoder::DoDecode(MediaRawData* aSample)
{
MOZ_ASSERT(mTaskQueue->IsCurrentThreadIn());