mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-19 23:06:49 +00:00
gstreamer: use of g_value_dup_string
Use helper method to get string from GValue.
This commit is contained in:
parent
25d7914395
commit
1d549ea324
2 changed files with 2 additions and 2 deletions
|
@ -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);
|
||||
|
||||
}
|
||||
|
||||
|
|
|
@ -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,
|
||||
|
|
Loading…
Reference in a new issue