mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-29 05:01:23 +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);
|
||||
|
||||
if (object->name_prefix != NULL)
|
||||
g_free (object->name_prefix);
|
||||
|
||||
if (name_prefix == NULL)
|
||||
object->name_prefix = NULL;
|
||||
else
|
||||
object->name_prefix = g_strdup (name_prefix);
|
||||
g_free (object->name_prefix);
|
||||
object->name_prefix = g_strdup (name_prefix); /* NULL gives NULL */
|
||||
|
||||
GST_UNLOCK (object);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue