[gstreamer-bugs] [Bug 571604] New: regitry feature are replaced during first use
GStreamer (bugzilla.gnome.org)
bugzilla-daemon at bugzilla.gnome.org
Fri Feb 13 03:07:44 PST 2009
If you have any questions why you received this email, please see the text at
the end of this email. Replies to this email are NOT read, please see the text
at the end of this email. You can add comments to this bug at:
http://bugzilla.gnome.org/show_bug.cgi?id=571604
GStreamer | gstreamer (core) | Ver: git
Summary: regitry feature are replaced during first use
Product: GStreamer
Version: git
Platform: Other
OS/Version: Linux
Status: UNCONFIRMED
Severity: normal
Priority: Normal
Component: gstreamer (core)
AssignedTo: gstreamer-bugs at lists.sourceforge.net
ReportedBy: ensonic at sonicpulse.de
QAContact: gstreamer-bugs at lists.sourceforge.net
GNOME version: Unspecified
GNOME milestone: Unspecified
Its just a performance issue, try this:
> GST_DEBUG="GST_REGISTRY:4" GST_DEBUG_NO_COLOR=1 gst-launch-0.10 2>debug.log fakesrc num-buffers=10 ! fakesink fakesinkk
> grep "replacing" debug.log
0:00:01.053512375 4560 0x804f050 DEBUG GST_REGISTRY
gstregistry.c:448:gst_registry_add_feature:<registry0> replacing existing
feature 0x80f1da0 (capsfilter)
0:00:01.053904446 4560 0x804f050 DEBUG GST_REGISTRY
gstregistry.c:448:gst_registry_add_feature:<registry0> replacing existing
feature 0x80f1d10 (fakesrc)
...
Problem is that when a plugin is used, gstreamer calls plugin_init() and this
calls gst_element_register(). Now gst_element_register() should be a bit
smarter and just return, if the plugin feature is already registerd (or if we
are not updating the registry. Ideally we could query that in plugin_init() and
skip registering the features (e.g. having a gst_registry_is_updating()).
--
See http://bugzilla.gnome.org/page.cgi?id=email.html for more info about why you received
this email, why you can't respond via email, how to stop receiving
emails (or reduce the number you receive), and how to contact someone
if you are having problems with the system.
You can add comments to this bug at http://bugzilla.gnome.org/show_bug.cgi?id=571604.
More information about the Gstreamer-bugs
mailing list