<html>
<head>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=us-ascii">
<meta name=Generator content="Microsoft Word 11 (filtered)">
<style>
<!--
/* Font Definitions */
@font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman";}
a:link, span.MsoHyperlink
        {color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {color:purple;
        text-decoration:underline;}
span.EmailStyle17
        {font-family:Arial;
        color:navy;}
@page Section1
        {size:8.5in 11.0in;
        margin:1.0in 1.25in 1.0in 1.25in;}
div.Section1
        {page:Section1;}
-->
</style>
</head>
<body lang=EN-US link=blue vlink=purple>
<div class=Section1>
<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'>It’s defined with
GST_GNUC_CONSTRUCTOR which gives it a compiler attribute that causes it to be
executed before entering the main() routine of your application.</span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'> </span></font></p>
<div>
<div class=MsoNormal align=center style='text-align:center'><font size=3
face="Times New Roman"><span style='font-size:12.0pt'>
<hr size=2 width="100%" align=center tabindex=-1>
</span></font></div>
<p class=MsoNormal><b><font size=2 face=Tahoma><span style='font-size:10.0pt;
font-family:Tahoma;font-weight:bold'>From:</span></font></b><font size=2
face=Tahoma><span style='font-size:10.0pt;font-family:Tahoma'>
gstreamer-devel-bounces@lists.sourceforge.net
[mailto:gstreamer-devel-bounces@lists.sourceforge.net] <b><span
style='font-weight:bold'>On Behalf Of </span></b>Christophe Dehais<br>
<b><span style='font-weight:bold'>Sent:</span></b> Thursday, June 15, 2006 2:24
PM<br>
<b><span style='font-weight:bold'>To:</span></b>
gstreamer-devel@lists.sourceforge.net<br>
<b><span style='font-weight:bold'>Subject:</span></b> [gst-devel] static plugin</span></font></p>
</div>
<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'> </span></font></p>
<p class=MsoNormal style='margin-bottom:12.0pt'><font size=3
face="Times New Roman"><span style='font-size:12.0pt'>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>
</span></font></p>
</div>
</body>
</html>