Bug 1158916 - Revert change to NotifyDataArrived. r=me
authorBobby Holley <bobbyholley@gmail.com>
Tue, 28 Apr 2015 09:21:48 -0700
changeset 241430 ccd154afb3c1dee16566ae8ddb09a9a1971074e3
parent 241429 45a4435099868e2a7be2c46761304660a4859556
child 241431 d53d91a3fae77790b06a401c4441aa415cddbfaf
push id59115
push userbobbyholley@gmail.com
push dateTue, 28 Apr 2015 16:22:30 +0000
treeherdermozilla-inbound@ccd154afb3c1 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersme
bugs1158916
milestone40.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 1158916 - Revert change to NotifyDataArrived. r=me
dom/media/MediaDecoder.cpp
--- a/dom/media/MediaDecoder.cpp
+++ b/dom/media/MediaDecoder.cpp
@@ -1643,16 +1643,20 @@ size_t MediaDecoder::SizeOfAudioQueue() 
   }
   return 0;
 }
 
 void MediaDecoder::NotifyDataArrived(const char* aBuffer, uint32_t aLength, int64_t aOffset) {
   if (mDecoderStateMachine) {
     mDecoderStateMachine->NotifyDataArrived(aBuffer, aLength, aOffset);
   }
+
+  // ReadyState computation depends on MediaDecoder::CanPlayThrough, which
+  // depends on the download rate.
+  mReadyStateWatchTarget->Notify();
 }
 
 // Provide access to the state machine object
 MediaDecoderStateMachine* MediaDecoder::GetStateMachine() const {
   return mDecoderStateMachine;
 }
 
 void