[arch-commits] Commit in mplayer-vaapi/trunk (PKGBUILD demux-gif.patch)
Evangelos Foutras
foutrelis at nymeria.archlinux.org
Sun Jul 7 14:19:31 UTC 2013
Date: Sunday, July 7, 2013 @ 16:19:31
Author: foutrelis
Revision: 93618
Fix FTBFS in libmpdemux (FS#FS#36039).
Added:
mplayer-vaapi/trunk/demux-gif.patch
Modified:
mplayer-vaapi/trunk/PKGBUILD
-----------------+
PKGBUILD | 5 +++++
demux-gif.patch | 19 +++++++++++++++++++
2 files changed, 24 insertions(+)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2013-07-07 13:33:04 UTC (rev 93617)
+++ PKGBUILD 2013-07-07 14:19:31 UTC (rev 93618)
@@ -23,12 +23,14 @@
source=(http://pkgbuild.com/~foutrelis/mplayer-vaapi-$pkgver.tar.xz
cdio-includes.patch
tweak-desktop-file.patch
+ demux-gif.patch
subreader-fix-srt-parsing.patch)
options=('!buildflags' '!emptydirs')
install=mplayer-vaapi.install
sha256sums=('a6c645625cc2cd6ca48764db302c926049f831e757857ece351b37b674e05e56'
'72e6c654f9733953ad2466d0ea1a52f23e753791d8232d90f13293eb1b358720'
'5a09fb462729a4e573568f9e8c1f57dbe7f69c0b68cfa4f6d70b3e52c450d93b'
+ '6774f57c027474388497606edfccbb33509cc78b573cdc322dd0955764c6f9c2'
'8b6cd325d89ff8bce3662c6aaa9b61b8e6163c6574e09b575426a1eed02b8ad3')
@@ -38,6 +40,9 @@
patch -Np0 -i "$srcdir/cdio-includes.patch"
patch -d etc -Np0 -i "$srcdir/tweak-desktop-file.patch"
+ # https://bugs.archlinux.org/task/36039
+ patch -Np0 -i "$srcdir/demux-gif.patch"
+
# http://bugzilla.mplayerhq.hu/show_bug.cgi?id=2139
patch -Np0 -i "$srcdir/subreader-fix-srt-parsing.patch"
}
Added: demux-gif.patch
===================================================================
--- demux-gif.patch (rev 0)
+++ demux-gif.patch 2013-07-07 14:19:31 UTC (rev 93618)
@@ -0,0 +1,19 @@
+--- libmpdemux/demux_gif.c-old 2012-08-20 08:47:01.000000000 -0600
++++ libmpdemux/demux_gif.c 2013-07-05 11:27:55.488387360 -0600
+@@ -45,6 +45,16 @@
+
+ #define GIF_SIGNATURE (('G' << 16) | ('I' << 8) | 'F')
+
++static void PrintGifError(void)
++{
++ char *Err = GifErrorString();
++
++ if (Err != NULL)
++ fprintf(stderr, "\nGIF-LIB error: %s.\n", Err);
++ else
++ fprintf(stderr, "\nGIF-LIB undefined error %d.\n", GifError());
++}
++
+ #ifndef CONFIG_GIF_TVT_HACK
+ // not supported by certain versions of the library
+ static int my_read_gif(GifFileType *gif, uint8_t *buf, int len)
More information about the arch-commits
mailing list