[gst-devel] static plugin
Christophe Dehais
christophe.dehais at gmail.com
Thu Jun 15 23:26:08 CEST 2006
On 6/15/06, Christophe Dehais <christophe.dehais at gmail.com> wrote:
>
> Hello,
>
> First what I wanted to do worked, I'm just trying to better understand how
> gstreamer works.
>
> I was trying to figure out the best way to organise my code for an
> application and a static plugin (not compiled as .so)
>
> I used the plugin template to generate gstmyplugin.[ch] and I just
> replaced the GST_PLUGIN_DEFINE by
> the GST_PLUGIN_DEFINE_STATIC in gstmyplugin.c.
>
> Looking at the definition of the GST_PLUGIN_DEFINE_STATIC macro, it
> creates a function:
> _gst_plugin_static_init__my_plugin_init ()
> that simply fills a GstPluginDesc structure and then call
> _gst_plugin_register_static ().
>
> 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(
>
>
> [oups shortcup pb. The end:]
gst_factor_make("my_plugin", "filter"); just works
Thanks for explanations
Christophe
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/gstreamer-devel/attachments/20060615/1d2b3acf/attachment.htm>
More information about the gstreamer-devel
mailing list