[Bug 756738] gst_registry_plugin_filter() and gst_registry_feature_filter() callbacks can't use any API using the registry

GStreamer (GNOME Bugzilla) bugzilla at gnome.org
Sun Oct 18 01:16:27 PDT 2015


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

--- Comment #7 from Sebastian Dröge (slomo) <slomo at coaxion.net> ---
Using an iterator internally and remembering which items we saw already seems
like more overhead to me :) If GList was refcounted (we could make it so), we
could make the common operation (read-only usage) cheap and the uncommon usage
(adding/removing things) expensive. So the other way around than in your patch
(and also the iterator approach is expensive because taking a look for every
item).
You could then make the list immutable and only require a lock to get the
pointer, and whenever the list is to be modified it could be copied. We would
need a special stage at gst_init() time then, where the list can be modified
(otherwise gst_init() will be very expensive as it adds one item at a time).


But maybe this is all too complicated and we can just go with your patch :)

-- 
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