[gstreamer-bugs] [Bug 570233] allow plugins caching data in the registry

GStreamer (bugzilla.gnome.org) bugzilla-daemon at bugzilla.gnome.org
Sun May 24 04:08:42 PDT 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=570233

  GStreamer | gstreamer (core) | Ver: git




------- Comment #6 from Stefan Kost (gstreamer, gtkdoc dev)  2009-05-24 11:08 UTC -------
It can handled simillar to uri-handler iface in registry. Instead of
GstElementFactory (in the uri-handler case) we would extend GstPluginFeature to
have a GstStructure *extra_data; and add _set/get functions.

Plugins would need to access or produce this data in plugin_init().

GstPluginFeature *my_feature;
GstStructure *data;

/* getting the feature from the plugin itself would be useful */
my_feature = gst_registry_lookup_feature(
  gst_registry_get_default(), "my-plugin");

data =  gst_plugin_feature_get_extra_data (my_feature);
if(!data) {
  /* we are running in registry update */
  data = gather_data(...);
  gst_plugin_feature_set_extra_data (my_feature, data);
}

/* use the cache data */
register_elements (plugin, data);


-- 
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=570233.




More information about the Gstreamer-bugs mailing list