X-Git-Url: https://review.fuel-infra.org/gitweb?a=blobdiff_plain;f=cirros-testvm%2Fsrc-cirros%2Fbuildroot-2015.05%2Fpackage%2Fmplayer%2F0006-Support-newer-GIFLIB-versions-part2.patch;fp=cirros-testvm%2Fsrc-cirros%2Fbuildroot-2015.05%2Fpackage%2Fmplayer%2F0006-Support-newer-GIFLIB-versions-part2.patch;h=271dce8b598d3789d25a2294e0d4c2aa6fe92f4d;hb=b0a0f15dfaa205161a7fcb20cf1b8cd4948c2ef3;hp=0000000000000000000000000000000000000000;hpb=c6ac3cd55ee2da956195eee393b0882105dfad4e;p=packages%2Ftrusty%2Fcirros-testvm.git diff --git a/cirros-testvm/src-cirros/buildroot-2015.05/package/mplayer/0006-Support-newer-GIFLIB-versions-part2.patch b/cirros-testvm/src-cirros/buildroot-2015.05/package/mplayer/0006-Support-newer-GIFLIB-versions-part2.patch new file mode 100644 index 0000000..271dce8 --- /dev/null +++ b/cirros-testvm/src-cirros/buildroot-2015.05/package/mplayer/0006-Support-newer-GIFLIB-versions-part2.patch @@ -0,0 +1,44 @@ +Support newer GIFLIB versions - Part 2 + +Adding another patch to fix the problem with new versions of libgif. +This patch has been sent upstream: + + https://lists.mplayerhq.hu/pipermail/mplayer-dev-eng/2015-February/072848.html + +Signed-off-by: Vicente Olivert Riera + +Support newer GIFLIB versions - Part 2 + +This patch is necessary because the previous upstream patch is +incomplete. Without this one, MPlayer will fail to compile displaying +an error message like this one: + +libvo/vo_gif89a.c: In function 'uninit': +libvo/vo_gif89a.c:374:3: error: too few arguments to function 'EGifCloseFile' + EGifCloseFile(new_gif); // also frees gif storage space. + +Signed-off-by: Vicente Olivert Riera +--- + +diff -rup a/libmpdemux/demux_gif.c b/libmpdemux/demux_gif.c +--- a/libmpdemux/demux_gif.c 2015-02-13 15:39:56.582310414 +0000 ++++ b/libmpdemux/demux_gif.c 2015-02-13 15:48:06.396837922 +0000 +@@ -48,6 +48,7 @@ typedef struct { + #if defined GIFLIB_MAJOR && GIFLIB_MAJOR >= 5 + #define DGifOpen(a, b) DGifOpen(a, b, NULL) + #define DGifOpenFileHandle(a) DGifOpenFileHandle(a, NULL) ++#define DGifCloseFile(a) DGifCloseFile(a, NULL) + #define GifError() (gif ? gif->Error : 0) + #define GifErrorString() GifErrorString(gif->Error) + #endif +diff -rup a/libvo/vo_gif89a.c b/libvo/vo_gif89a.c +--- a/libvo/vo_gif89a.c 2015-02-13 15:39:56.631311186 +0000 ++++ b/libvo/vo_gif89a.c 2015-02-13 15:45:25.392168294 +0000 +@@ -71,6 +71,7 @@ const LIBVO_EXTERN(gif89a) + + #if defined GIFLIB_MAJOR && GIFLIB_MAJOR >= 5 + #define EGifOpenFileName(a, b) EGifOpenFileName(a, b, NULL) ++#define EGifCloseFile(a) EGifCloseFile(a, NULL) + #define MakeMapObject GifMakeMapObject + #define FreeMapObject GifFreeMapObject + #define QuantizeBuffer GifQuantizeBuffer