rtspreal: use GLib's base64 functions if available
authorTim-Philipp Müller <tim.muller@collabora.co.uk>
Fri, 30 Apr 2010 18:53:15 +0000 (19:53 +0100)
committerTim-Philipp Müller <tim.muller@collabora.co.uk>
Fri, 30 Apr 2010 18:53:15 +0000 (19:53 +0100)
Since gst_rtsp_base64_decode_ip() just got deprecated in -base git.

gst/realmedia/rtspreal.c

index 4dfcc38..c3cfb47 100644 (file)
@@ -205,6 +205,11 @@ G_STMT_START {                            \
   }                                    \
 } G_STMT_END
 
+/* FIXME: remove once we depend on GLib >= 2.20 */
+#if GLIB_CHECK_VERSION (2, 20, 0)
+#define gst_rtsp_base64_decode_ip g_base64_decode_inplace
+#endif
+
 #define READ_BUFFER_GEN(src, func, name, dest, dest_len)    \
 G_STMT_START {                                             \
   dest = (gchar *)func (src, name);                         \