Bug 1158916 - Revert change to NotifyDataArrived. r=me
authorBobby Holley <bobbyholley@gmail.com>
Tue, 28 Apr 2015 09:21:48 -0700
changeset 271337 ccd154afb3c1dee16566ae8ddb09a9a1971074e3
parent 271336 45a4435099868e2a7be2c46761304660a4859556
child 271338 d53d91a3fae77790b06a401c4441aa415cddbfaf
push id4830
push userjlund@mozilla.com
push dateMon, 29 Jun 2015 20:18:48 +0000
treeherdermozilla-beta@4c2175bb0420 [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