[gst-devel] plugin/element names
mattias
barthel at tid.es
Tue Dec 9 09:29:55 CET 2008
Thanks,
But can I have the different elements in a plugin/group in different
shared libs?
Or is 1 shared lib = 1 plugin?
Maybe the gstreamer framework calls the plugin_init function upon a
dlopen, which will
obviously be an obstacle for my wishes.
Kindest regards,
Mattias
Eric Zhang wrote:
> 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 <mailto: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=/
> <http://moblin-contest.org/redirect.php?banner_id=100&url=/>
> _______________________________________________
> gstreamer-devel mailing list
> gstreamer-devel at lists.sourceforge.net
> <mailto:gstreamer-devel at lists.sourceforge.net>
> https://lists.sourceforge.net/lists/listinfo/gstreamer-devel
>
>
--
Mattias Frank Barthel
Vía Augusta 177 08021 Barcelona (España)
Tecnologías de Video
TELEFÓNICA I+D
More information about the gstreamer-devel
mailing list