diff --git a/gst/gsttag.c b/gst/gsttag.c index c6c4f3f110..e2761e0e05 100644 --- a/gst/gsttag.c +++ b/gst/gsttag.c @@ -206,7 +206,7 @@ gst_tag_merge_strings_with_comma (GValue *dest, const GValue *src) } g_value_init (dest, G_TYPE_STRING); - g_value_take_string (dest, str->str); + g_value_set_string_take_ownership (dest, str->str); g_string_free (str, FALSE); } static GstTagInfo * diff --git a/gst/gsttaglist.c b/gst/gsttaglist.c index c6c4f3f110..e2761e0e05 100644 --- a/gst/gsttaglist.c +++ b/gst/gsttaglist.c @@ -206,7 +206,7 @@ gst_tag_merge_strings_with_comma (GValue *dest, const GValue *src) } g_value_init (dest, G_TYPE_STRING); - g_value_take_string (dest, str->str); + g_value_set_string_take_ownership (dest, str->str); g_string_free (str, FALSE); } static GstTagInfo *