registry: don't recreate features on first use. Fixes #584389
authorStefan Kost <ensonic@users.sf.net>
Sun, 7 Jun 2009 19:09:14 +0000 (22:09 +0300)
committerStefan Kost <ensonic@users.sf.net>
Sun, 7 Jun 2009 20:48:59 +0000 (23:48 +0300)
commit55577a48ea9e93ec6532b1e81684e4c0ae26157c
tree7115b307d2964dc7485968b889db0e3100bb2e1f
parentfbaa49faf4a1122cf2d3fb4f4425a4e028b20460
registry: don't recreate features on first use. Fixes #584389

The first time one calls gst_element_factory_make(), gst recreates the plugin
feature and the element factory. As a side effect we ref the class to fill
in detail we already have filled from the registry cache. This patch changes
the behaviour to just update the existing entries. The factory is now attached
to the type and set in gst_element_base_class_init().
gst/gstelement.c
gst/gstelementfactory.c
gst/gstplugin.c
win32/common/libgstreamer.def