diff options
author | Max Kellermann <max@duempel.org> | 2009-02-03 21:44:02 +0100 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2009-02-03 21:44:02 +0100 |
commit | 5a5bf78a25b2cc170d4232d58653e0db4b8d61b5 (patch) | |
tree | 8cd358386efbeeef7c5456352ba71bcbf96f68f2 /src/decoder | |
parent | 7a3628e797e1c86e1aa15f8211e090ad8ef1feb0 (diff) | |
download | mpd-5a5bf78a25b2cc170d4232d58653e0db4b8d61b5.tar.gz mpd-5a5bf78a25b2cc170d4232d58653e0db4b8d61b5.tar.xz mpd-5a5bf78a25b2cc170d4232d58653e0db4b8d61b5.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 'src/decoder')
-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 efad6eb16..c85485297 100644 --- a/src/decoder/ffmpeg_plugin.c +++ b/src/decoder/ffmpeg_plugin.c @@ -175,6 +175,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) { |