Bug 1297265: P9. Rework Vorbis Decoder use of InputExhausted. r?kamidphish draft
authorJean-Yves Avenard <jyavenard@mozilla.com>
Thu, 01 Sep 2016 19:41:53 +1000
changeset 408642 f160ff095c5b2867d2776d8f6cd367ad1c278259
parent 408641 f6a5dde984a7343d3c8fab365780c12c9804dacc
child 408643 047f9da4fd2578062f1b5967bde069bff67a345b
push id28262
push userbmo:jyavenard@mozilla.com
push dateThu, 01 Sep 2016 12:26:45 +0000
reviewerskamidphish
bugs1297265
milestone51.0a1
Bug 1297265: P9. Rework Vorbis Decoder use of InputExhausted. r?kamidphish MozReview-Commit-ID: 58KKxY1YcpK
dom/media/platforms/agnostic/VorbisDecoder.cpp
--- a/dom/media/platforms/agnostic/VorbisDecoder.cpp
+++ b/dom/media/platforms/agnostic/VorbisDecoder.cpp
@@ -138,17 +138,17 @@ 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()) {
+  } else {
     mCallback->InputExhausted();
   }
 }
 
 int
 VorbisDataDecoder::DoDecode(MediaRawData* aSample)
 {
   MOZ_ASSERT(mTaskQueue->IsCurrentThreadIn());