[MPlayer-dev-eng] Support newer GIFLIB versions - Part 2

Alexander Strasser eclipse7 at gmx.net
Sun Mar 15 01:19:51 CET 2015


Hello Vicente,
hello Andïï!

On 2015-02-15 17:58 +0000, Andïï wrote:
> On 15 February 2015 at 17:28, Vicente Olivert Riera
> <Vincent.Riera at imgtec.com> wrote:
> > Thanks for the clarification, Andïï.
> >
> > Maintainers, please, feel free to apply this patch amending the commit
> > message.
> >
> 
> You might also want to put it under a separate #if if you want to keep
> 5.0 compatibility
> 
>  #if defined GIFLIB_MAJOR && ( GIFLIB_MAJOR > 5 || (GIFLIB_MAJOR == 5
> && GIFLIB_MINOR >= 1))

  Hmm..

  I am a bit confused. The commit you probably refer to addressed
compatibility up to 5.0 version of GIFLIB. That is SVN r36367 .

  The problems you want to address now should already be solved
since SVN r37293 (October 2014), aren't they?

Thank you,
  Alexander

> > Vincent
> >
> > On 15/02/15 18:23, Andïï wrote:
> >> On 14 February 2015 at 16:53, Vicente Olivert Riera
> >> <Vincent.Riera at imgtec.com> wrote:
> >>> 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 <Vincent.Riera at imgtec.com>
> >>> ---
> >>>
> >>> 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
> >>> _______________________________________________ MPlayer-dev-eng
> >>> mailing list MPlayer-dev-eng at mplayerhq.hu
> >>> https://lists.mplayerhq.hu/mailman/listinfo/mplayer-dev-eng
> >>
> >> It's not that the previous patch was incomplete, but that this API
> >> call changed between giflib 5.0 and 5.1.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 181 bytes
Desc: not available
URL: <https://lists.mplayerhq.hu/pipermail/mplayer-dev-eng/attachments/20150315/76c28283/attachment.asc>


More information about the MPlayer-dev-eng mailing list