registry: allow plugin and feature filter funcs to call registry API
authorTim-Philipp Müller <tim@centricular.com>
Sat, 17 Oct 2015 17:01:47 +0000 (18:01 +0100)
committerTim-Philipp Müller <tim@centricular.com>
Sat, 26 Mar 2016 11:13:09 +0000 (11:13 +0000)
commitf02d09c362d119bf79a49275d1cb7a0c1f0f6bc4
tree41e65a16c06a33e011cf6ad5cfa5612454e65e07
parent2a023cdc14f7720142f77629a02bb84c677ab696
registry: allow plugin and feature filter funcs to call registry API

Don't keep the registry locked whilst iterating over the plugins
or features with a filter function. This would deadlock if the
callback tried to access the registry from the function. Instead,
make a copy of the feature/plugin list and then filter it without
holding the registry lock. This is still considerably faster than
the alternative which would be to use a GstIterator.

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