[gst-devel] plugin/element names

Eric Zhang nicolas.m.zhang at gmail.com
Thu Dec 4 03:30:25 CET 2008


Hi, gstreamer-devel:

    1. In GST_PLUGIN_DEFINE macro, you can define the group name and the
plugin_init function.

    2. In plugin_init function, call gst_element_register to register the
elements which you wanna keep in this plugin group. So there is no need to
call GST_PLUGIN_DEFINE in every element's source file, just call
GST_PLUGIN_DEFINE once and register all the elements in plugin_init
function, that's all.

Eric Zhang

2008/12/4 mattias <barthel at tid.es>

> Hi,
>
> Is there a way to make a group name of plugins (like with effectTV) but
> to have all the
> distinct elements in different shared libs?
>
> I tried to call macro GST_PLUGIN_DEFINE at the end of each element
> source file with the group name I wanted
> but it did not work.
>
> How could be the right way to go about this, please?
> -------
>
> static gboolean plugin_init(GstPlugin* plugin)
> {
>  /* exchange the strings 'plugin' and 'Template plugin' with your
> plugin name and description */
>  GST_DEBUG_CATEGORY_INIT (gst_tidsidebyside_debug, "tidsidebyside", 0,
> "Put 2 input video side by side in a double width frame ");
>
>  return gst_element_register (plugin, "tidsidebyside", GST_RANK_NONE,
> GST_TYPE_TIDSIDEBYSIDE);
> }
>
>
> GST_PLUGIN_DEFINE (GST_VERSION_MAJOR,
>                   GST_VERSION_MINOR,
>                   "tid",
>                   "Example ONE of a TID plugin",
>                   plugin_init,
>                   VERSION,
>                   "LGPL",
>                   "GStreamer",
>                   "http://gstreamer.net/")
>
> --
>  Mattias Frank Barthel
>  Vía Augusta 177 08021 Barcelona (España)
>  Tecnologías de Video
>  TELEFÓNICA I+D
>
>
>
> -------------------------------------------------------------------------
> This SF.Net email is sponsored by the Moblin Your Move Developer's
> challenge
> Build the coolest Linux based applications with Moblin SDK & win great
> prizes
> Grand prize is a trip for two to an Open Source event anywhere in the world
> http://moblin-contest.org/redirect.php?banner_id=100&url=/
> _______________________________________________
> gstreamer-devel mailing list
> gstreamer-devel at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gstreamer-devel
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/gstreamer-devel/attachments/20081204/e3d23f62/attachment.htm>


More information about the gstreamer-devel mailing list