diff options
author | Kyle Guinn <elyk03@gmail.com> | 2015-10-19 21:42:58 +0100 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2016-01-17 09:40:16 +0700 |
commit | c005c2cf056a7cca6ce9c679daea86518c90372a (patch) | |
tree | c943dc1c855948ce2a40177eca93fbe07da5b12c /multimedia/gnash/patch/cc22f2d0597f3a9547980f4786d918f8b5635472.patch | |
parent | 8225c36eb240bf706b8cf9c5293ca1b88dae1655 (diff) | |
download | slackbuilds-c005c2cf056a7cca6ce9c679daea86518c90372a.tar.gz |
multimedia/gnash: Patched for giflib5 in -current.
Signed-off-by: David Spencer <baildon.research@googlemail.com>
Signed-off-by: Robby Workman <rworkman@slackbuilds.org>
Diffstat (limited to 'multimedia/gnash/patch/cc22f2d0597f3a9547980f4786d918f8b5635472.patch')
-rw-r--r-- | multimedia/gnash/patch/cc22f2d0597f3a9547980f4786d918f8b5635472.patch | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/multimedia/gnash/patch/cc22f2d0597f3a9547980f4786d918f8b5635472.patch b/multimedia/gnash/patch/cc22f2d0597f3a9547980f4786d918f8b5635472.patch new file mode 100644 index 0000000000..6e90737d51 --- /dev/null +++ b/multimedia/gnash/patch/cc22f2d0597f3a9547980f4786d918f8b5635472.patch @@ -0,0 +1,31 @@ +From cc22f2d0597f3a9547980f4786d918f8b5635472 Mon Sep 17 00:00:00 2001 +From: OBATA Akio <obata@lins.jp> +Date: Mon, 15 Jul 2013 07:16:39 +0000 +Subject: Add support fir GIFLIB-5.0 (bug #39482) + +Signed-off-by: Sandro Santilli <strk@keybit.net> +--- +diff --git a/libbase/GnashImageGif.cpp b/libbase/GnashImageGif.cpp +index eeba4b7..26865c1 100644 +--- a/libbase/GnashImageGif.cpp ++++ b/libbase/GnashImageGif.cpp +@@ -269,7 +269,17 @@ GifInput::processRecord(GifRecordType record) + void + GifInput::read() + { ++#if GIFLIB_MAJOR >= 5 ++ int errorCode; ++ _gif = DGifOpen(_inStream.get(), &readData, &errorCode); ++#else + _gif = DGifOpen(_inStream.get(), &readData); ++#endif ++ ++ if ( ! _gif ) { ++ // TODO: decode errorCode if available ++ throw ParserException("Could not open input GIF stream"); ++ } + + GifRecordType record; + +-- +cgit v0.9.0.2 |