Bug 1411476. P2 - show duration in debug logs. r=gerald

MozReview-Commit-ID: Ir7LFU6Dlei

--HG--
extra : rebase_source : c4094a10e3f312bb9a250e0ce41fc6ac8f1efe23
This commit is contained in:
JW Wang 2017-10-25 10:36:03 +08:00
Родитель 65fba1f9d2
Коммит 6490c484f5
1 изменённых файлов: 5 добавлений и 1 удалений

Просмотреть файл

@ -3694,13 +3694,17 @@ nsCString
MediaDecoderStateMachine::GetDebugInfo()
{
MOZ_ASSERT(OnTaskQueue());
int64_t duration =
mDuration.Ref() ? mDuration.Ref().ref().ToMicroseconds() : -1;
return nsPrintfCString(
"MediaDecoderStateMachine State: GetMediaTime=%" PRId64 " GetClock="
"MediaDecoderStateMachine State: duration=%" PRId64
" GetMediaTime=%" PRId64 " GetClock="
"%" PRId64 " mMediaSink=%p state=%s mPlayState=%d "
"mSentFirstFrameLoadedEvent=%d IsPlaying=%d mAudioStatus=%s "
"mVideoStatus=%s mDecodedAudioEndTime=%" PRId64
" mDecodedVideoEndTime=%" PRId64 " mAudioCompleted=%d "
"mVideoCompleted=%d",
duration,
GetMediaTime().ToMicroseconds(),
mMediaSink->IsStarted() ? GetClock().ToMicroseconds() : -1,
mMediaSink.get(),