object: Notify name change when using _set_name()

There was a 0.11 FIXME about notifying the name change or removing that
function. Clearly we can't remove this function, so let's notify it.

https://bugzilla.gnome.org/show_bug.cgi?id=766923
This commit is contained in:
Nicolas Dufresne 2016-05-26 13:17:37 -04:00
parent 6bfb88b410
commit 446778464b

View file

@ -623,10 +623,8 @@ gst_object_set_name (GstObject * object, const gchar * name)
GST_OBJECT_UNLOCK (object);
result = gst_object_set_name_default (object);
}
/* FIXME-0.11: this misses a g_object_notify (object, "name"); unless called
* from gst_object_set_property.
* Ideally remove such custom setters (or make it static).
*/
g_object_notify (G_OBJECT (object), "name");
return result;
/* error */