caps: use g_value_take_string() and gst_value_get_caps() instead of accessing interna...
authorFabrizio (Misto) Milo <mistobaan@gmail.com>
Thu, 15 Sep 2011 18:49:43 +0000 (11:49 -0700)
committerSebastian Dröge <sebastian.droege@collabora.co.uk>
Mon, 19 Sep 2011 07:50:11 +0000 (09:50 +0200)
gst/gstcaps.c

index f723920ca0dd5fe947e7ca33b7bd801eaa8ec074..002694df2608c7d0290abdf68fa127a9788c3c99 100644 (file)
@@ -2112,8 +2112,8 @@ gst_caps_transform_to_string (const GValue * src_value, GValue * dest_value)
   g_return_if_fail (G_VALUE_HOLDS (dest_value, G_TYPE_STRING)
       || G_VALUE_HOLDS (dest_value, G_TYPE_POINTER));
 
-  dest_value->data[0].v_pointer =
-      gst_caps_to_string (src_value->data[0].v_pointer);
+  g_value_take_string (dest_value,
+      gst_caps_to_string (gst_value_get_caps (src_value)));
 }
 
 static GstCaps *