From e54748d3554d57f8320dff7390fa605bf23d7cd0 Mon Sep 17 00:00:00 2001 From: Skottish Date: Sun, 3 Jul 2011 15:17:44 +0200 Subject: decoder/ffmpeg: use AVIO_FLAG_READ on newer ffmpeg versions FFmpeg/libav have dropped AVIO_RDONLY in favor of AVIO_FLAG_READ. This patch fixes that in MPD. --- src/input/ffmpeg_input_plugin.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/input/ffmpeg_input_plugin.c b/src/input/ffmpeg_input_plugin.c index 7b729a0e..24d80a37 100644 --- a/src/input/ffmpeg_input_plugin.c +++ b/src/input/ffmpeg_input_plugin.c @@ -88,7 +88,9 @@ input_ffmpeg_open(const char *uri, GError **error_r) i = g_new(struct input_ffmpeg, 1); input_stream_init(&i->base, &input_plugin_ffmpeg, uri); -#if LIBAVFORMAT_VERSION_INT >= AV_VERSION_INT(53,0,0) +#if LIBAVFORMAT_VERSION_INT >= AV_VERSION_INT(53,1,0) + int ret = avio_open(&i->h, uri, AVIO_FLAG_READ); +#elif LIBAVFORMAT_VERSION_INT >= AV_VERSION_INT(53,0,0) int ret = avio_open(&i->h, uri, AVIO_RDONLY); #else int ret = url_open(&i->h, uri, URL_RDONLY); -- cgit v1.2.3