Bug 888175 - Don't log dropped frames in MediaDecoderStateMachine if MOZ_QUIET is set. r=padenot

This commit is contained in:
Chris Pearce 2013-06-28 22:09:37 +12:00
Родитель e76981b946
Коммит 8fde570940
1 изменённых файлов: 6 добавлений и 4 удалений

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

@ -2466,12 +2466,14 @@ void MediaDecoderStateMachine::AdvanceFrame()
while (mRealTime || clock_time >= frame->mTime) {
mVideoFrameEndTime = frame->mEndTime;
currentFrame = frame;
LOG(PR_LOG_DEBUG, ("%p Decoder discarding video frame %lld", mDecoder.get(), frame->mTime));
#ifdef PR_LOGGING
if (!PR_GetEnv("MOZ_QUIET")) {
LOG(PR_LOG_DEBUG, ("%p Decoder discarding video frame %lld", mDecoder.get(), frame->mTime));
if (droppedFrames++) {
LOG(PR_LOG_DEBUG, ("%p Decoder discarding video frame %lld (%d so far)",
mDecoder.get(), frame->mTime, droppedFrames - 1));
}
}
#endif
mReader->VideoQueue().PopFront();
// Notify the decode thread that the video queue's buffers may have