Bug 1297265: P7. Rework Theora Decoder use of InputExhausted. r?kamidphish draft
authorJean-Yves Avenard <jyavenard@mozilla.com>
Thu, 01 Sep 2016 19:40:52 +1000
changeset 408640 180b6420203667d11cf0994026dae12030936677
parent 408639 29ecc2232dd5fc1c24aae31b275c2d044b31111c
child 408641 f6a5dde984a7343d3c8fab365780c12c9804dacc
push id28262
push userbmo:jyavenard@mozilla.com
push dateThu, 01 Sep 2016 12:26:45 +0000
reviewerskamidphish
bugs1297265
milestone51.0a1
Bug 1297265: P7. Rework Theora Decoder use of InputExhausted. r?kamidphish MozReview-Commit-ID: 1udj9o3r2YE
dom/media/platforms/agnostic/TheoraDecoder.cpp
--- 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());