summaryrefslogtreecommitdiff
path: root/graphics/gnash/files/patch-libbase_GnashImageGif.cpp
blob: 17e67dc5f3a51fc44c88c167ffa1ab93339c8f79 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
--- libbase/GnashImageGif.cpp.orig	2012-01-19 19:17:48 UTC
+++ libbase/GnashImageGif.cpp
@@ -121,7 +121,11 @@ GifInput::GifInput(boost::shared_ptr<IOC
 GifInput::~GifInput()
 {
     // Clean up allocated data.
+#if GIFLIB_MAJOR == 5 && GIFLIB_MINOR >= 1 || GIFLIB_MAJOR > 5
+    DGifCloseFile(_gif, NULL);
+#else
     DGifCloseFile(_gif);
+#endif
 }
 
 size_t
@@ -269,7 +273,11 @@ GifInput::processRecord(GifRecordType re
 void
 GifInput::read()
 {
+#if GIFLIB_MAJOR >= 5
+    _gif = DGifOpen(_inStream.get(), &readData, NULL); 
+#else
     _gif = DGifOpen(_inStream.get(), &readData); 
+#endif
 
     GifRecordType record;