aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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,