summaryrefslogtreecommitdiff
path: root/multimedia/gnash/patch/58dcdd9338d965e54c8f03ce3d2757388d82b7a3.patch
diff options
context:
space:
mode:
Diffstat (limited to 'multimedia/gnash/patch/58dcdd9338d965e54c8f03ce3d2757388d82b7a3.patch')
-rw-r--r--multimedia/gnash/patch/58dcdd9338d965e54c8f03ce3d2757388d82b7a3.patch25
1 files changed, 25 insertions, 0 deletions
diff --git a/multimedia/gnash/patch/58dcdd9338d965e54c8f03ce3d2757388d82b7a3.patch b/multimedia/gnash/patch/58dcdd9338d965e54c8f03ce3d2757388d82b7a3.patch
new file mode 100644
index 0000000000..b3242ce0d3
--- /dev/null
+++ b/multimedia/gnash/patch/58dcdd9338d965e54c8f03ce3d2757388d82b7a3.patch
@@ -0,0 +1,25 @@
+From 58dcdd9338d965e54c8f03ce3d2757388d82b7a3 Mon Sep 17 00:00:00 2001
+From: gustavo <gbuschle@hotmail.com>
+Date: Thu, 11 Sep 2014 14:12:17 +0000
+Subject: Add support for giflib 5.1
+
+---
+diff --git a/libbase/GnashImageGif.cpp b/libbase/GnashImageGif.cpp
+index 84b09ce..2ae5ddb 100644
+--- a/libbase/GnashImageGif.cpp
++++ b/libbase/GnashImageGif.cpp
+@@ -120,7 +120,11 @@ GifInput::GifInput(std::shared_ptr<IOChannel> in)
+ GifInput::~GifInput()
+ {
+ // Clean up allocated data.
+- DGifCloseFile(_gif);
++#if GIFLIB_MAJOR==5 && GIFLIB_MINOR==1
++ DGifCloseFile(_gif, 0);
++#else
++ DGifCloseFile(_gif);
++#endif
+ }
+
+ size_t
+--
+cgit v0.9.0.2