Bug 1265978. Part 2.5 - also dump reader data. r=jya.
authorJW Wang <jwwang@mozilla.com>
Fri, 22 Apr 2016 14:18:34 +0800
changeset 332339 26fbf6f91bf9b2cdfc18fdd0c0c45df47d745c46
parent 332338 8dc7d569b77089b8e1410a0eccc2c4f339ee89ca
child 332340 ad66fdaa938abc31501ac1630a99859e1700520f
push id6048
push userkmoir@mozilla.com
push dateMon, 06 Jun 2016 19:02:08 +0000
treeherdermozilla-beta@46d72a56c57d [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersjya
bugs1265978
milestone48.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 1265978. Part 2.5 - also dump reader data. r=jya. MozReview-Commit-ID: 3m71yGg6lbN
dom/media/MediaDecoder.cpp
--- a/dom/media/MediaDecoder.cpp
+++ b/dom/media/MediaDecoder.cpp
@@ -1878,16 +1878,21 @@ MediaDecoder::NextFrameBufferedStatus()
 
 void
 MediaDecoder::DumpDebugInfo()
 {
   DUMP_LOG("metadata: channels=%u rate=%u hasAudio=%d hasVideo=%d, "
            "state: mPlayState=%s mIsDormant=%d, mShuttingDown=%d",
            mInfo->mAudio.mChannels, mInfo->mAudio.mRate, mInfo->HasAudio(), mInfo->HasVideo(),
            PlayStateStr(), mIsDormant, mShuttingDown);
+
+  nsString str;
+  GetMozDebugReaderData(str);
+  DUMP_LOG("reader data:\n%s", NS_ConvertUTF16toUTF8(str).get());
+
   if (!mShuttingDown && GetStateMachine()) {
     GetStateMachine()->DumpDebugInfo();
   }
 }
 
 void
 MediaDecoder::NotifyAudibleStateChanged()
 {