From fcde4d14cef1b261ec4db0590a19cf792e0f1ecf Mon Sep 17 00:00:00 2001 From: Jean-Yves Avenard Date: Wed, 18 Mar 2015 14:10:58 +1100 Subject: [PATCH] Bug 1128332: Part1. Add useful informations to logging. r=mattwoodrow --- dom/media/mediasource/MediaSourceReader.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/dom/media/mediasource/MediaSourceReader.cpp b/dom/media/mediasource/MediaSourceReader.cpp index b7c261d7b7f..8a0911ea126 100644 --- a/dom/media/mediasource/MediaSourceReader.cpp +++ b/dom/media/mediasource/MediaSourceReader.cpp @@ -120,7 +120,7 @@ MediaSourceReader::RequestAudioData() MOZ_DIAGNOSTIC_ASSERT(mSeekPromise.IsEmpty(), "No sample requests allowed while seeking"); MOZ_DIAGNOSTIC_ASSERT(mAudioPromise.IsEmpty(), "No duplicate sample requests"); nsRefPtr p = mAudioPromise.Ensure(__func__); - MSE_DEBUGV(""); + MSE_DEBUGV("mLastAudioTime=%lld", mLastAudioTime); if (!mAudioTrack) { MSE_DEBUG("called with no audio track"); mAudioPromise.Reject(DECODE_ERROR, __func__); @@ -268,8 +268,8 @@ MediaSourceReader::RequestVideoData(bool aSkipToNextKeyframe, int64_t aTimeThres MOZ_DIAGNOSTIC_ASSERT(mSeekPromise.IsEmpty(), "No sample requests allowed while seeking"); MOZ_DIAGNOSTIC_ASSERT(mVideoPromise.IsEmpty(), "No duplicate sample requests"); nsRefPtr p = mVideoPromise.Ensure(__func__); - MSE_DEBUGV("RequestVideoData(%d, %lld)", - aSkipToNextKeyframe, aTimeThreshold); + MSE_DEBUGV("RequestVideoData(%d, %lld), mLastVideoTime=%lld", + aSkipToNextKeyframe, aTimeThreshold, mLastVideoTime); if (!mVideoTrack) { MSE_DEBUG("called with no video track"); mVideoPromise.Reject(DECODE_ERROR, __func__);