Skip to content
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.

(adapted from commit ae0dcaf)
  • Loading branch information...
1 parent 79a24c9 commit 1d4d50bc7e32ccaaabc983a6dec92b1c2a5fb2a0 @stichnot stichnot committed Jan 31, 2013
Showing with 3 additions and 1 deletion.
  1. +3 −1 mythtv/libs/libmythtv/avformatdecoder.cpp
View
4 mythtv/libs/libmythtv/avformatdecoder.cpp
@@ -879,7 +879,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"
+ if (!VERBOSE_LEVEL_CHECK(VB_LIBAV, LOG_DEBUG))
+ silence_ffmpeg_logging = true;
int retval = av_find_stream_info(ic);
silence_ffmpeg_logging = false;
return retval;

0 comments on commit 1d4d50b

Please sign in to comment.
Something went wrong with that request. Please try again.