mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-26 10:10:32 +00:00
object: Use g_object_notify_by_pspec()
`g_object_notify()` actually takes a global lock to look up the `GParamSpec` that corresponds to the given property name. It's not a huge performance hit, but it's easily avoidable by using the `_by_pspec()` variant.
This commit is contained in:
parent
493a3261a9
commit
9e69c90869
1 changed files with 1 additions and 1 deletions
|
@ -635,7 +635,7 @@ gst_object_set_name (GstObject * object, const gchar * name)
|
||||||
result = gst_object_set_name_default (object);
|
result = gst_object_set_name_default (object);
|
||||||
}
|
}
|
||||||
|
|
||||||
g_object_notify (G_OBJECT (object), "name");
|
g_object_notify_by_pspec (G_OBJECT (object), properties[PROP_NAME]);
|
||||||
return result;
|
return result;
|
||||||
|
|
||||||
/* error */
|
/* error */
|
||||||
|
|
Loading…
Reference in a new issue