From 12c7e7c0bc554781b5785f803755caa6054dc572 Mon Sep 17 00:00:00 2001 From: "Robin H. Johnson" Date: Wed, 14 Jan 2009 00:35:17 +0000 Subject: Fix building against ImageMagick 6.4.5 Date: Tue Nov 18 2008 00:57:00 +0000 Upstream ImageMagick changed part of the API and did not update their deprecated support stuff, so bump us along for now to avoid having to downgrade. --- src/libxinevdec/image.c | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/libxinevdec/image.c b/src/libxinevdec/image.c index 51e5d0309..a4d09a63c 100644 --- a/src/libxinevdec/image.c +++ b/src/libxinevdec/image.c @@ -50,6 +50,15 @@ #include "xineutils.h" #include "bswap.h" +/* In 6.4.5.4 MagickGetImagePixels changed to MagickGetAuthenticPixels + * But upstream did not update their deprecated compat stuff. + * So do a fun hack to make it work. + * - 2008/11/26 Robin H. Johnson + */ +#if MagickLibVersion >= 0x645 +#define MagickGetImagePixels MagickGetAuthenticPixels +#endif + typedef struct { video_decoder_class_t decoder_class; -- cgit v1.2.3