[tracker] tracker-extract-gif: add compatibility with GIFLib 5.1.0
- From: Martyn James Russell <mr src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [tracker] tracker-extract-gif: add compatibility with GIFLib 5.1.0
- Date: Fri, 19 Sep 2014 09:22:46 +0000 (UTC)
commit 2ad6b9063ff4d362b24c6f833ddb3e2be73f9e39
Author: Jan Engelhardt <jengelh inai de>
Date: Tue Sep 9 15:09:28 2014 +0200
tracker-extract-gif: add compatibility with GIFLib 5.1.0
Signed-off-by: Dominique Leuenberger <dimstar opensuse org>
https://bugzilla.gnome.org/show_bug.cgi?id=736328
src/tracker-extract/tracker-extract-gif.c | 8 +++++++-
1 files changed, 7 insertions(+), 1 deletions(-)
---
diff --git a/src/tracker-extract/tracker-extract-gif.c b/src/tracker-extract/tracker-extract-gif.c
index 43ba34a..10f87dc 100644
--- a/src/tracker-extract/tracker-extract-gif.c
+++ b/src/tracker-extract/tracker-extract-gif.c
@@ -96,6 +96,12 @@ static inline void print_gif_error()
}
#endif /* GIFLIB_MAJOR >= 5 */
+/* giflib 5.1 changed the API of DGifCloseFile to take two arguments */
+#if !defined(GIFLIB_MAJOR) || \
+ !(GIFLIB_MAJOR > 5 || (GIFLIB_MAJOR == 5 && GIFLIB_MINOR >= 1))
+#define DGifCloseFile(a, b) DGifCloseFile(a)
+#endif
+
static void
read_metadata (TrackerSparqlBuilder *preupdate,
TrackerSparqlBuilder *metadata,
@@ -680,7 +686,7 @@ tracker_extract_get_metadata (TrackerExtractInfo *info)
g_free (uri);
- if (DGifCloseFile (gifFile) != GIF_OK) {
+ if (DGifCloseFile (gifFile, NULL) != GIF_OK) {
#if GIFLIB_MAJOR < 5
print_gif_error ();
#else /* GIFLIB_MAJOR < 5 */
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]