Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
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...
commit 1d4d50bc7e32ccaaabc983a6dec92b1c2a5fb2a0 1 parent 79a24c9
@stichnot stichnot authored
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;
Please sign in to comment.
Something went wrong with that request. Please try again.