Hi, gstreamer-devel:<br><br>&nbsp;&nbsp;&nbsp; 1. In GST_PLUGIN_DEFINE macro, you can define the group name and the plugin_init function.<br><br>&nbsp;&nbsp;&nbsp; 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&#39;s source file, just call GST_PLUGIN_DEFINE once and register all the elements in plugin_init function, that&#39;s all.<br>
<br>Eric Zhang<br><br><div class="gmail_quote">2008/12/4 mattias <span dir="ltr">&lt;<a href="mailto:barthel@tid.es">barthel@tid.es</a>&gt;</span><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Hi,<br>
<br>
Is there a way to make a group name of plugins (like with effectTV) but<br>
to have all the<br>
distinct elements in different shared libs?<br>
<br>
I tried to call macro GST_PLUGIN_DEFINE at the end of each element<br>
source file with the group name I wanted<br>
but it did not work.<br>
<br>
How could be the right way to go about this, please?<br>
-------<br>
<br>
static gboolean plugin_init(GstPlugin* plugin)<br>
{<br>
 &nbsp;/* exchange the strings &#39;plugin&#39; and &#39;Template plugin&#39; with your<br>
plugin name and description */<br>
 &nbsp;GST_DEBUG_CATEGORY_INIT (gst_tidsidebyside_debug, &quot;tidsidebyside&quot;, 0,<br>
&quot;Put 2 input video side by side in a double width frame &quot;);<br>
<br>
 &nbsp;return gst_element_register (plugin, &quot;tidsidebyside&quot;, GST_RANK_NONE,<br>
GST_TYPE_TIDSIDEBYSIDE);<br>
}<br>
<br>
<br>
GST_PLUGIN_DEFINE (GST_VERSION_MAJOR,<br>
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; GST_VERSION_MINOR,<br>
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &quot;tid&quot;,<br>
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &quot;Example ONE of a TID plugin&quot;,<br>
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; plugin_init,<br>
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; VERSION,<br>
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &quot;LGPL&quot;,<br>
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &quot;GStreamer&quot;,<br>
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &quot;<a href="http://gstreamer.net/" target="_blank">http://gstreamer.net/</a>&quot;)<br>
<br>
--<br>
&nbsp;Mattias Frank Barthel<br>
&nbsp;Vía Augusta 177 08021 Barcelona (España)<br>
&nbsp;Tecnologías de Video<br>
&nbsp;TELEFÓNICA I+D<br>
<br>
<br>
<br>
-------------------------------------------------------------------------<br>
This SF.Net email is sponsored by the Moblin Your Move Developer&#39;s challenge<br>
Build the coolest Linux based applications with Moblin SDK &amp; win great prizes<br>
Grand prize is a trip for two to an Open Source event anywhere in the world<br>
<a href="http://moblin-contest.org/redirect.php?banner_id=100&amp;url=/" target="_blank">http://moblin-contest.org/redirect.php?banner_id=100&amp;url=/</a><br>
_______________________________________________<br>
gstreamer-devel mailing list<br>
<a href="mailto:gstreamer-devel@lists.sourceforge.net">gstreamer-devel@lists.sourceforge.net</a><br>
<a href="https://lists.sourceforge.net/lists/listinfo/gstreamer-devel" target="_blank">https://lists.sourceforge.net/lists/listinfo/gstreamer-devel</a><br>
</blockquote></div><br>