It practically never contains anything useful. Print the decoder name
instead.
---
 src/decoder/FfmpegDecoderPlugin.cxx |    3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/src/decoder/FfmpegDecoderPlugin.cxx 
b/src/decoder/FfmpegDecoderPlugin.cxx
index 71ba966..dc34ac6 100644
--- a/src/decoder/FfmpegDecoderPlugin.cxx
+++ b/src/decoder/FfmpegDecoderPlugin.cxx
@@ -422,8 +422,6 @@ static int init_decoder(struct ffmpeg_decoder_context *dec,
 
        dec->time_base = dec->st->time_base;
        dec->avctx = dec->st->codec;
-       if (dec->avctx->codec_name[0] != 0)
-               g_debug("codec '%s'", dec->avctx->codec_name);
 
        AVCodec *codec = avcodec_find_decoder(dec->avctx->codec_id);
 
@@ -431,6 +429,7 @@ static int init_decoder(struct ffmpeg_decoder_context *dec,
                g_warning("Unsupported audio codec\n");
                return -1;
        }
+       g_debug("codec '%s'", codec->name);
 
        const enum sample_format sample_format =
                ffmpeg_sample_format(dec->avctx->sample_fmt);
-- 
1.7.10.4


------------------------------------------------------------------------------
Own the Future-Intel® Level Up Game Demo Contest 2013
Rise to greatness in Intel's independent game demo contest.
Compete for recognition, cash, and the chance to get your game 
on Steam. $5K grand prize plus 10 genre and skill prizes. 
Submit your demo by 6/6/13. http://p.sf.net/sfu/intel_levelupd2d
_______________________________________________
Musicpd-dev-team mailing list
Musicpd-dev-team@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/musicpd-dev-team

Reply via email to