mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-06-07 07:58:51 +00:00
optimize
Original commit message from CVS: optimize
This commit is contained in:
parent
29177515ff
commit
ccb77fc69f
1 changed files with 2 additions and 7 deletions
|
@ -686,13 +686,8 @@ gst_object_set_name_prefix (GstObject * object, const gchar * name_prefix)
|
||||||
|
|
||||||
GST_LOCK (object);
|
GST_LOCK (object);
|
||||||
|
|
||||||
if (object->name_prefix != NULL)
|
g_free (object->name_prefix);
|
||||||
g_free (object->name_prefix);
|
object->name_prefix = g_strdup (name_prefix); /* NULL gives NULL */
|
||||||
|
|
||||||
if (name_prefix == NULL)
|
|
||||||
object->name_prefix = NULL;
|
|
||||||
else
|
|
||||||
object->name_prefix = g_strdup (name_prefix);
|
|
||||||
|
|
||||||
GST_UNLOCK (object);
|
GST_UNLOCK (object);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue