Date: Thu, 12 Nov 2015 15:21:10 +0000 (UTC) From: Antoine Brodin <antoine@FreeBSD.org> To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r401357 - head/multimedia/mplayer2/files Message-ID: <201511121521.tACFLAZf066038@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: antoine Date: Thu Nov 12 15:21:10 2015 New Revision: 401357 URL: https://svnweb.freebsd.org/changeset/ports/401357 Log: Allow building with giflib 5.1 PR: 204492 Modified: head/multimedia/mplayer2/files/patch-libmpdemux-demux_gif.c Modified: head/multimedia/mplayer2/files/patch-libmpdemux-demux_gif.c ============================================================================== --- head/multimedia/mplayer2/files/patch-libmpdemux-demux_gif.c Thu Nov 12 15:16:07 2015 (r401356) +++ head/multimedia/mplayer2/files/patch-libmpdemux-demux_gif.c Thu Nov 12 15:21:10 2015 (r401357) @@ -75,11 +75,16 @@ free(priv); return NULL; } -@@ -301,7 +301,7 @@ static void demux_close_gif(demuxer_t* d +@@ -300,8 +300,12 @@ static void demux_close_gif(demuxer_t* d + { gif_priv_t *priv = demuxer->priv; if (!priv) return; ++#if GIFLIB_MAJOR == 5 && GIFLIB_MINOR >= 1 || GIFLIB_MAJOR > 5 ++ if (priv->gif && DGifCloseFile(priv->gif, NULL) == GIF_ERROR) ++#else if (priv->gif && DGifCloseFile(priv->gif) == GIF_ERROR) - PrintGifError(); ++#endif + printf("%s\n", GifErrorString(GIF_ERROR)); free(priv->refimg); free(priv);
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201511121521.tACFLAZf066038>