mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-17 15:25:52 +00:00
Bug 888175 - Don't log dropped frames in MediaDecoderStateMachine if MOZ_QUIET is set. r=padenot
This commit is contained in:
parent
e76981b946
commit
8fde570940
@ -2466,11 +2466,13 @@ 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 (droppedFrames++) {
|
||||
LOG(PR_LOG_DEBUG, ("%p Decoder discarding video frame %lld (%d so far)",
|
||||
mDecoder.get(), frame->mTime, droppedFrames - 1));
|
||||
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();
|
||||
|
Loading…
Reference in New Issue
Block a user