Bug 1297265: P7. Rework Theora Decoder use of InputExhausted. r?kamidphish
MozReview-Commit-ID: 1udj9o3r2YE
--- a/dom/media/platforms/agnostic/TheoraDecoder.cpp
+++ b/dom/media/platforms/agnostic/TheoraDecoder.cpp
@@ -197,17 +197,17 @@ void
TheoraDecoder::ProcessDecode(MediaRawData* aSample)
{
MOZ_ASSERT(mTaskQueue->IsCurrentThreadIn());
if (mIsFlushing) {
return;
}
if (DoDecode(aSample) == -1) {
mCallback->Error(MediaDataDecoderError::DECODE_ERROR);
- } else if (mTaskQueue->IsEmpty()) {
+ } else {
mCallback->InputExhausted();
}
}
nsresult
TheoraDecoder::Input(MediaRawData* aSample)
{
MOZ_ASSERT(mCallback->OnReaderTaskQueue());