aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnton Khirnov <anton@khirnov.net>2013-04-22 17:51:16 +0200
committerAnton Khirnov <anton@khirnov.net>2013-11-04 11:02:12 +0100
commitbd8e9260147c5086ea0c9c1abdd27d1a41945c89 (patch)
tree4361c277e6a0f7e7a385a670fef6b574b660a0cd
parenta5d36f1da159977449ba5d94522b9ca7384292fe (diff)
libav decoder plugin: do not print AVCodecContext.codec_name
It almost never contains anything useful. Print AVCodec.name instead.
-rw-r--r--src/decoder/libav_decoder_plugin.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/src/decoder/libav_decoder_plugin.c b/src/decoder/libav_decoder_plugin.c
index d0b8fa3d..ad0abe85 100644
--- a/src/decoder/libav_decoder_plugin.c
+++ b/src/decoder/libav_decoder_plugin.c
@@ -328,16 +328,13 @@ static void libav_decode(struct decoder *decoder, struct input_stream *input)
if (ret < 0)
return;
- dec = s.ast->codec;
- if (dec->codec_name[0] != 0)
- g_debug("codec '%s'", dec->codec_name);
-
+ dec = s.ast->codec;
codec = avcodec_find_decoder(dec->codec_id);
-
if (!codec) {
g_warning("Unsupported audio codec\n");
goto finish;
}
+ g_debug("Selected audio decoder %s\n", codec->name);
if (!audio_format_init_checked(&audio_format,
dec->sample_rate,