Browse files

Enable more ffmpeg logging at startup of playback.

Allow logging in avformat_find_stream_info() if
"-v libav --loglevel debug" is specified.
This proves useful for live TV debugging among others.
  • Loading branch information...
stichnot committed Feb 1, 2013
1 parent a2ccb9f commit ae0dcaf6dfbbef1ac0bcc0cec1c684262ea9ee5c
Showing with 3 additions and 1 deletion.
  1. +3 −1 mythtv/libs/libmythtv/avformatdecoder.cpp
@@ -909,7 +909,9 @@ extern "C" void HandleBDStreamChange(void *data)
int AvFormatDecoder::FindStreamInfo(void)
QMutexLocker lock(avcodeclock);
silence_ffmpeg_logging = true;
// Suppress ffmpeg logging unless "-v libav --loglevel debug"
silence_ffmpeg_logging = true;
int retval = avformat_find_stream_info(ic, NULL);
silence_ffmpeg_logging = false;
return retval;

0 comments on commit ae0dcaf

Please sign in to comment.