[Bug 766923] object: Notify name change when using _set_name()

GStreamer (GNOME Bugzilla) bugzilla at gnome.org
Thu May 26 18:51:29 UTC 2016


https://bugzilla.gnome.org/show_bug.cgi?id=766923

--- Comment #8 from Nicolas Dufresne (stormer) <nicolas at ndufresne.ca> ---
(In reply to Tim-Philipp Müller from comment #5)
> What I meant was that if someone does g_object_set(obj, "name", ...) will we
> now get two notifies, one from GObject and one we do inside _set_name(), or
> will GObject "compress" them so that it will only be emitted once in that
> case?

No, GObject have a fency notification queue. This is used to allow calling
g_object_notify () without notifying twice, but also to not notify twice if one
call:

  g_object_set (object, "prop", val, "prop", val, NULL);

We even use this feature from within GStreamer (see calls to
g_object_notify_freeze/g_object_notify_thaw).

-- 
You are receiving this mail because:
You are the QA Contact for the bug.
You are the assignee for the bug.


More information about the gstreamer-bugs mailing list