From 5a5bf78a25b2cc170d4232d58653e0db4b8d61b5 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Tue, 3 Feb 2009 21:44:02 +0100 Subject: 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. --- src/decoder/ffmpeg_plugin.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/decoder/ffmpeg_plugin.c') 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) { -- cgit v1.2.3