From 8afdb249774da035f33cd805548eb8fc3801d47c Mon Sep 17 00:00:00 2001 From: Jonathan Gonzalez V Date: Thu, 21 Apr 2011 09:06:47 +0800 Subject: [PATCH] Don't use obsolete CODEC_TYPE_AUDIO macro --- src/spek-audio.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/spek-audio.c b/src/spek-audio.c index 892e613..5bf9616 100644 --- a/src/spek-audio.c +++ b/src/spek-audio.c @@ -57,7 +57,7 @@ SpekAudioContext * spek_audio_open (const gchar *file_name) { } cx->audio_stream = -1; for (i = 0; i < cx->format_context->nb_streams; i++) { - if (cx->format_context->streams[i]->codec->codec_type == CODEC_TYPE_AUDIO) { + if (cx->format_context->streams[i]->codec->codec_type == AVMEDIA_TYPE_AUDIO) { cx->audio_stream = i; break; }