From: Gildas Bazin Date: Wed, 16 Aug 2006 21:19:15 +0000 (+0000) Subject: * modules/codec/ffmpeg/ffmpeg.c: print AV_LOG_DEBUG messages if they were requested. X-Git-Tag: 0.9.0-test0~10634 X-Git-Url: https://git.sesse.net/?a=commitdiff_plain;h=b93020a1d8f9904022bf97c829890bfda928b6df;p=vlc * modules/codec/ffmpeg/ffmpeg.c: print AV_LOG_DEBUG messages if they were requested. --- diff --git a/modules/codec/ffmpeg/ffmpeg.c b/modules/codec/ffmpeg/ffmpeg.c index 26b9bc17f3..432af6a645 100644 --- a/modules/codec/ffmpeg/ffmpeg.c +++ b/modules/codec/ffmpeg/ffmpeg.c @@ -379,6 +379,9 @@ static void LibavcodecCallback( void *p_opaque, int i_level, i_vlc_level = VLC_MSG_DBG; break; case AV_LOG_DEBUG: + /* Print debug messages if they were requested */ + if( p_avctx->debug ) vfprintf( stderr, psz_format, va ); + return; default: return; }