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:
Niels De Graef 2019-08-25 19:37:30 +02:00 committed by Niels De Graef
parent 493a3261a9
commit 9e69c90869

View file

@ -635,7 +635,7 @@ gst_object_set_name (GstObject * object, const gchar * name)
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;
/* error */