From: Sebastian Dröge Date: Sat, 28 Feb 2009 09:29:15 +0000 (+0100) Subject: mxf: Don't use GLib 2.16 API unconditionally in the example X-Git-Tag: 1.19.3~507^2~19212 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=922e6428f61083a4b749059c342b655a509e9206;p=platform%2Fupstream%2Fgstreamer.git mxf: Don't use GLib 2.16 API unconditionally in the example --- diff --git a/tests/examples/mxf/mxfdemux-structure.c b/tests/examples/mxf/mxfdemux-structure.c index 0678ad5..17130bf 100644 --- a/tests/examples/mxf/mxfdemux-structure.c +++ b/tests/examples/mxf/mxfdemux-structure.c @@ -30,8 +30,12 @@ static gchar * g_value_to_string (const GValue * val) { if (G_VALUE_TYPE (val) == GST_TYPE_BUFFER) { +#if GLIB_CHECK_VERSION (2,16,0) const GstBuffer *buf = gst_value_get_buffer (val); gchar *ret = g_base64_encode (GST_BUFFER_DATA (buf), GST_BUFFER_SIZE (buf)); +#else + gchar *ret = gst_value_serialize (val); +#endif return ret; } else {