gstreamer: use of g_value_dup_string

Use helper method to get string from GValue.
This commit is contained in:
Stéphane Cerveau 2019-12-18 15:57:35 +01:00
parent 25d7914395
commit 1d549ea324
2 changed files with 2 additions and 2 deletions

View file

@ -2000,7 +2000,7 @@ gst_event_parse_toc_select (GstEvent * event, gchar ** uid)
val = gst_structure_id_get_value (structure, GST_QUARK (UID));
if (uid != NULL)
*uid = g_strdup (g_value_get_string (val));
*uid = g_value_dup_string (val);
}

View file

@ -252,7 +252,7 @@ gst_net_time_provider_set_property (GObject * object, guint prop_id,
if (g_value_get_string (value) == NULL)
self->priv->address = g_strdup (DEFAULT_ADDRESS);
else
self->priv->address = g_strdup (g_value_get_string (value));
self->priv->address = g_value_dup_string (value);
break;
case PROP_CLOCK:
gst_object_replace ((GstObject **) clock_p,