summaryrefslogtreecommitdiffstats
path: root/tests/examples/mxf
diff options
context:
space:
mode:
authorSebastian Dröge <sebastian.droege@collabora.co.uk>2009-02-28 10:29:15 +0100
committerSebastian Dröge <sebastian.droege@collabora.co.uk>2009-02-28 10:29:15 +0100
commit922e6428f61083a4b749059c342b655a509e9206 (patch)
tree3e014461d08d1485e723e71d8cdc85dd5d1d80e8 /tests/examples/mxf
parent22a9d7577f74b9d09a4e5a90af2a9e085a45fc7a (diff)
downloadgst-plugins-bad-922e6428f61083a4b749059c342b655a509e9206.tar.gz
gst-plugins-bad-922e6428f61083a4b749059c342b655a509e9206.tar.bz2
gst-plugins-bad-922e6428f61083a4b749059c342b655a509e9206.zip
mxf: Don't use GLib 2.16 API unconditionally in the example
Diffstat (limited to 'tests/examples/mxf')
-rw-r--r--tests/examples/mxf/mxfdemux-structure.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/examples/mxf/mxfdemux-structure.c b/tests/examples/mxf/mxfdemux-structure.c
index 0678ad54..17130bfb 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 {