Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 506856 Details for
Bug 610574
media-video/dvdauthor[imagemagick]: compilation fails with >=media-gfx/imagemagick-7.0.1.0
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
test_patch
file_610574.txt (text/plain), 2.17 KB, created by
Branko Grubic
on 2017-11-27 20:06:33 UTC
(
hide
)
Description:
test_patch
Filename:
MIME Type:
Creator:
Branko Grubic
Created:
2017-11-27 20:06:33 UTC
Size:
2.17 KB
patch
obsolete
>--- dvdauthor/src/subgen-image.c 2014-01-21 00:12:37.000000000 +0100 >+++ dvdauthor/src/subgen-image.c 2017-11-27 20:26:53.682914041 +0100 >@@ -30,7 +30,7 @@ > > #if defined(HAVE_MAGICK) || defined(HAVE_GMAGICK) > #include <stdarg.h> >-#include <magick/api.h> >+#include <MagickWand/MagickWand.h> > #else > #include <png.h> > #endif >@@ -176,18 +176,18 @@ > { > Image *im; > ImageInfo *ii; >- ExceptionInfo ei; >+ ExceptionInfo *ei; > int x,y; > unsigned long magickver; > unsigned char amask; > >- GetExceptionInfo(&ei); >+ ei = AcquireExceptionInfo(); > ii=CloneImageInfo(NULL); > strcpy(ii->filename,s->fname); >- im=ReadImage(ii,&ei); >+ im=ReadImage(ii,ei); > > if( !im ) { >- MagickError(ei.severity,"Unable to load file",ii->filename); >+ MagickError(ei->severity,"Unable to load file",ii->filename); > return -1; > } > >@@ -202,10 +202,10 @@ > for( y=0; y<im->rows; y++ ) { > char pdata[MAXX*4]; > >- if(!ExportImagePixels(im,0,y,im->columns,1,"RGBA",CharPixel,pdata,&ei)) { >- fprintf(stderr,"ERR: Extracting row %d from %s (%s,%s)\n",y,s->fname,ei.reason,ei.description); >- CatchException(&ei); >- MagickError(ei.severity,ei.reason,ei.description); >+ if(!ExportImagePixels(im,0,y,im->columns,1,"RGBA",CharPixel,pdata,ei)) { >+ fprintf(stderr,"ERR: Extracting row %d from %s (%s,%s)\n",y,s->fname,ei->reason,ei->description); >+ CatchException(ei); >+ MagickError(ei->severity,ei->reason,ei->description); > DestroyImage(im); > return -1; > } >@@ -219,7 +219,7 @@ > } > } > DestroyImage(im); >- DestroyExceptionInfo(&ei); >+ DestroyExceptionInfo(ei); > fprintf(stderr,"INFO: Picture %s had %d colors\n",s->fname,s->numpal); > > return 0; >@@ -1098,13 +1098,13 @@ > void image_init() > { > #if defined(HAVE_MAGICK) || defined(HAVE_GMAGICK) >- InitializeMagick(NULL); >+ MagickCoreGenesis("", MagickFalse); > #endif > } > > void image_shutdown() > { > #if defined(HAVE_MAGICK) || defined(HAVE_GMAGICK) >- DestroyMagick(); >+ MagickCoreTerminus(); > #endif > }
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 610574
:
464728
| 506856