Bug 687972. Add a little bit more logging.
authorRobert O'Callahan <robert@ocallahan.org>
Thu, 01 Dec 2011 00:16:19 +1300
changeset 81809 72cb519c581a5256375dd0cae73119bf83840a25
parent 81808 aca4994f37c181dafa0361abd27892fdbbc70203
child 81810 fe8b575a6db91d7382e7b6f046144a91a4101815
push idunknown
push userunknown
push dateunknown
bugs687972
milestone11.0a1
Bug 687972. Add a little bit more logging.
content/media/nsBuiltinDecoder.cpp
--- a/content/media/nsBuiltinDecoder.cpp
+++ b/content/media/nsBuiltinDecoder.cpp
@@ -639,17 +639,19 @@ void nsBuiltinDecoder::UpdatePlaybackRat
   mStream->SetPlaybackRate(rate);
 }
 
 void nsBuiltinDecoder::NotifySuspendedStatusChanged()
 {
   NS_ASSERTION(NS_IsMainThread(), "Should be on main thread.");
   if (!mStream)
     return;
-  if (mStream->IsSuspendedByCache() && mElement) {
+  bool suspended = mStream->IsSuspendedByCache();
+  printf("*** nsBuiltinDecoder::NotifySuspendedStatusChanged(%p), suspended=%d\n", this, suspended);
+  if (suspended && mElement) {
     // if this is an autoplay element, we need to kick off its autoplaying
     // now so we consume data and hopefully free up cache space
     mElement->NotifyAutoplayDataReady();
   }
 }
 
 void nsBuiltinDecoder::NotifyBytesDownloaded()
 {