Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 173546 Details for
Bug 247292
media-libs/xine-lib-1.1.15 does not build with ImageMagick 6.4.5
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
xine-lib-1.1.15-MagickGetImagePixels.patc
xine-lib-1.1.15-GetImagePixels.patch (text/plain), 1.18 KB, created by
Robin Johnson
on 2008-11-27 03:03:01 UTC
(
hide
)
Description:
xine-lib-1.1.15-MagickGetImagePixels.patc
Filename:
MIME Type:
Creator:
Robin Johnson
Created:
2008-11-27 03:03:01 UTC
Size:
1.18 KB
patch
obsolete
>Upstream ImageMagick changed part of the API and did not updated their >deprecated support stuff, so bump us along for now to avoid having to downgrade. > >Gentoo-bug: 247292 >Signed-off-by: Robin H. Johnson <robbat2@gentoo.org> > >diff -Nuar --exclude '*~' xine-lib-1.1.15.orig/src/libxinevdec/image.c xine-lib-1.1.15/src/libxinevdec/image.c >--- xine-lib-1.1.15.orig/src/libxinevdec/image.c 2008-06-14 16:15:00.000000000 -0700 >+++ xine-lib-1.1.15/src/libxinevdec/image.c 2008-11-26 18:10:16.416309036 -0800 >@@ -110,7 +110,15 @@ > width = MagickGetImageWidth(wand) & ~1; /* must be even for init_yuv_planes */ > height = MagickGetImageHeight(wand); > img_buf = malloc(width * height * 3); >+/* 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 <robbat2@gentoo.org> >+ */ >+#if MagickLibVersion >= 0x645 >+#define MagickGetImagePixels MagickGetAuthenticPixels >+#endif > MagickGetImagePixels(wand, 0, 0, width, height, "RGB", CharPixel, img_buf); > DestroyMagickWand(wand); > > _x_stream_info_set(this->stream, XINE_STREAM_INFO_VIDEO_WIDTH, width);
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 247292
: 173546 |
173547
|
177324