File gnash-0.8.10-giflib5.patch of Package gnash

diff --git a/libbase/GnashImageGif.cpp b/libbase/GnashImageGif.cpp
index eeba4b7..7d33cbc 100644
--- a/libbase/GnashImageGif.cpp
+++ b/libbase/GnashImageGif.cpp
@@ -269,7 +269,11 @@ GifInput::processRecord(GifRecordType record)
 void
 GifInput::read()
 {
+#if GIFLIB_MAJOR < 5
     _gif = DGifOpen(_inStream.get(), &readData); 
+#else
+    _gif = DGifOpen(_inStream.get(), &readData, NULL);
+#endif
 
     GifRecordType record;
 
openSUSE Build Service is sponsored by