From 6beb3093b2c9f3717def8cea47873d29ff9cc3ee Mon Sep 17 00:00:00 2001 From: =?utf-8?q?Javier=20Jard=C3=B3n?= Date: Thu, 3 Dec 2009 22:43:21 +0100 Subject: [PATCH] Substitute deprecated Glib symbol: g_mapped_file_free Use g_mapped_file_unref if Glib >= 2.22 is available --- gst/fsrtpconference/fs-rtp-codec-cache.c | 4 ++++ 1 files changed, 4 insertions(+), 0 deletions(-) diff --git a/gst/fsrtpconference/fs-rtp-codec-cache.c b/gst/fsrtpconference/fs-rtp-codec-cache.c index 3382525..7269991 100644 --- a/gst/fsrtpconference/fs-rtp-codec-cache.c +++ b/gst/fsrtpconference/fs-rtp-codec-cache.c @@ -366,7 +366,11 @@ load_codecs_cache (FsMediaType media_type) error: if (mapped) { +#if GLIB_CHECK_VERSION(2,22,0) + g_mapped_file_unref (mapped); +#else g_mapped_file_free (mapped); +#endif } else { g_free (contents); } -- 1.6.3.3