<br><br><div><span class="gmail_quote">On 6/15/06, <b class="gmail_sendername">Christophe Dehais</b> <<a href="mailto:christophe.dehais@gmail.com">christophe.dehais@gmail.com</a>> wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div>Hello,<br><br>First what I wanted to do worked, I'm just trying to better understand how gstreamer works.<br><br>I was trying to figure out the best way to organise my code for an application and a static plugin (not compiled as .so)
<br><br>I used the plugin template to generate gstmyplugin.[ch] and I just replaced the GST_PLUGIN_DEFINE by<br>the GST_PLUGIN_DEFINE_STATIC in gstmyplugin.c.<br><br>Looking at the definition of the GST_PLUGIN_DEFINE_STATIC macro, it creates a function:
<br>_gst_plugin_static_init__my_plugin_init ()<br>that simply fills a GstPluginDesc structure and then call _gst_plugin_register_static ().<br><br>So my question is: when is this function called when I execute my application ? I had nothing to change to the app code, just had it linked with the produced
gstmyplugin.o and gstreamer is able to find my custom plugin (gst_factory_make( <br><br><br>
</div></blockquote></div>[oups shortcup pb. The end:]<br><br>gst_factor_make("my_plugin", "filter"); just works<br><br>Thanks for explanations<br>Christophe<br><br>