Bug 1297265: P8. Rework LibVPX Decoder use of InputExhausted. r?kamidphish draft
authorJean-Yves Avenard <jyavenard@mozilla.com>
Thu, 01 Sep 2016 19:41:28 +1000
changeset 408641 f6a5dde984a7343d3c8fab365780c12c9804dacc
parent 408640 180b6420203667d11cf0994026dae12030936677
child 408642 f160ff095c5b2867d2776d8f6cd367ad1c278259
push id28262
push userbmo:jyavenard@mozilla.com
push dateThu, 01 Sep 2016 12:26:45 +0000
reviewerskamidphish
bugs1297265
milestone51.0a1
Bug 1297265: P8. Rework LibVPX Decoder use of InputExhausted. r?kamidphish MozReview-Commit-ID: H7KnDpkcaeT
dom/media/platforms/agnostic/VPXDecoder.cpp
--- a/dom/media/platforms/agnostic/VPXDecoder.cpp
+++ b/dom/media/platforms/agnostic/VPXDecoder.cpp
@@ -187,17 +187,17 @@ void
 VPXDecoder::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
 VPXDecoder::Input(MediaRawData* aSample)
 {
   MOZ_ASSERT(mCallback->OnReaderTaskQueue());