Bug 1062018 - MSE Audio decoder reaching EOS stops decoding - r=kinetik
authorChris Double <chris.double@double.co.nz>
Wed, 03 Sep 2014 15:20:02 +1200
changeset 203329 72124e690b7a0f01a4a6349ea24f5d6d89a7db62
parent 203328 413f70cd2040ae387a0a50fdd4f996b1cdd230e4
child 203330 546b7b991c4c01109230e8a888e36311d6255739
push id27425
push userryanvm@gmail.com
push dateWed, 03 Sep 2014 20:38:59 +0000
treeherdermozilla-central@acbdce59da2f [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerskinetik
bugs1062018
milestone35.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1062018 - MSE Audio decoder reaching EOS stops decoding - r=kinetik
content/media/mediasource/MediaSourceReader.cpp
--- a/content/media/mediasource/MediaSourceReader.cpp
+++ b/content/media/mediasource/MediaSourceReader.cpp
@@ -82,17 +82,17 @@ MediaSourceReader::OnAudioDecoded(AudioD
 void
 MediaSourceReader::OnAudioEOS()
 {
   MSE_DEBUG("MediaSourceReader(%p)::OnAudioEOS reader=%p (readers=%u)",
             this, mAudioReader.get(), mDecoders.Length());
   if (SwitchReaders(SWITCH_FORCED)) {
     // Success! Resume decoding with next audio decoder.
     RequestAudioData();
-  } else {
+  } else if (IsEnded()) {
     // End of stream.
     MSE_DEBUG("MediaSourceReader(%p)::OnAudioEOS reader=%p EOS (readers=%u)",
               this, mAudioReader.get(), mDecoders.Length());
     GetCallback()->OnAudioEOS();
   }
 }
 
 void