зеркало из https://github.com/mozilla/gecko-dev.git
Bug 888175 - Don't log dropped frames in MediaDecoderStateMachine if MOZ_QUIET is set. r=padenot
This commit is contained in:
Родитель
e76981b946
Коммит
8fde570940
|
@ -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
|
||||
|
|
Загрузка…
Ссылка в новой задаче