diff options
author | Max Kellermann <max@duempel.org> | 2009-02-03 21:44:02 +0100 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2009-02-03 22:51:35 +0100 |
commit | a7632b09e0f247bce1da742ac6c25fb52157f2a9 (patch) | |
tree | 108ed490874df40e81842ffd8b19b05d09968e91 | |
parent | 3b0a78fe0dc9f4110692975f54cd1e585d2c6e27 (diff) | |
download | mpd-a7632b09e0f247bce1da742ac6c25fb52157f2a9.tar.gz mpd-a7632b09e0f247bce1da742ac6c25fb52157f2a9.tar.xz mpd-a7632b09e0f247bce1da742ac6c25fb52157f2a9.zip |
ffmpeg: print codec name
Output the name of the codec as a debug message. During my tests,
ffmpeg never filled this struct member, but it may do so in the past,
and this debug message might become helpful.
Diffstat (limited to '')
-rw-r--r-- | src/decoder/ffmpeg_plugin.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/decoder/ffmpeg_plugin.c b/src/decoder/ffmpeg_plugin.c index f75109268..ba3355ee7 100644 --- a/src/decoder/ffmpeg_plugin.c +++ b/src/decoder/ffmpeg_plugin.c @@ -177,6 +177,9 @@ ffmpeg_helper(struct input_stream *input, } codec_context = format_context->streams[audio_stream]->codec; + if (codec_context->codec_name[0] != 0) + g_debug("codec '%s'", codec_context->codec_name); + codec = avcodec_find_decoder(codec_context->codec_id); if (!codec) { |