<div dir="ltr">In <a href="https://gstreamer.freedesktop.org/documentation/plugin-development/basics/boiler.html?gi-language=c">https://gstreamer.freedesktop.org/documentation/plugin-development/basics/boiler.html?gi-language=c</a><div><br></div><div>there is a structure that contains information of a particular instance of an element:<br>(<span style="background-color:initial;font-family:Consolas,Monaco,"Andale Mono","Ubuntu Mono",monospace;font-size:inherit;word-spacing:normal;color:black">GstMyFilter)<br><br>which later on in the tutorial gets used in for example:<br><br></span><pre class="gmail-language-c" style="box-sizing:border-box;overflow:auto;font-family:Consolas,Monaco,"Andale Mono","Ubuntu Mono",monospace;font-size:13px;padding:1em;margin-top:0.5em;margin-bottom:0.5em;line-height:1.5;color:black;word-break:normal;background:rgb(245,242,240);border:1px solid rgb(204,204,204);border-radius:0px"><code class="gmail-language-c" style="box-sizing:border-box;font-family:Consolas,Monaco,"Andale Mono","Ubuntu Mono",monospace;font-size:inherit;padding:0px;background:none;border-radius:0px;word-spacing:normal;word-break:normal;line-height:1.5"><span class="gmail-token gmail-keyword" style="box-sizing:border-box;color:rgb(0,119,170)">static</span> gboolean
gst_my_filter_sink_event <span class="gmail-token gmail-punctuation" style="box-sizing:border-box;color:rgb(153,153,153)">(</span>GstPad <span class="gmail-token gmail-operator" style="box-sizing:border-box;color:rgb(166,127,89);background:rgba(255,255,255,0.5)">*</span>pad<span class="gmail-token gmail-punctuation" style="box-sizing:border-box;color:rgb(153,153,153)">,</span>
GstObject <span class="gmail-token gmail-operator" style="box-sizing:border-box;color:rgb(166,127,89);background:rgba(255,255,255,0.5)">*</span>parent<span class="gmail-token gmail-punctuation" style="box-sizing:border-box;color:rgb(153,153,153)">,</span>
GstEvent <span class="gmail-token gmail-operator" style="box-sizing:border-box;color:rgb(166,127,89);background:rgba(255,255,255,0.5)">*</span>event<span class="gmail-token gmail-punctuation" style="box-sizing:border-box;color:rgb(153,153,153)">)</span>
<span class="gmail-token gmail-punctuation" style="box-sizing:border-box;color:rgb(153,153,153)">{</span>
GstMyFilter <span class="gmail-token gmail-operator" style="box-sizing:border-box;color:rgb(166,127,89);background:rgba(255,255,255,0.5)">*</span>filter <span class="gmail-token gmail-operator" style="box-sizing:border-box;color:rgb(166,127,89);background:rgba(255,255,255,0.5)">=</span> GST_MY_FILTER <span class="gmail-token gmail-punctuation" style="box-sizing:border-box;color:rgb(153,153,153)">(</span>parent<span class="gmail-token gmail-punctuation" style="box-sizing:border-box;color:rgb(153,153,153)">)</span><span class="gmail-token gmail-punctuation" style="box-sizing:border-box;color:rgb(153,153,153)">;</span>
</code></pre><br class="gmail-Apple-interchange-newline"><div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature"><div>but where does the structure 'GstMyFilter' get initialised ?<br><br>I'm asking because i've added a default constructor in my structure, but it never gets called, but somehow the structure is initialised with 0's <br><br>how can I ensure that the data structure's constructor is used ?<br><br>kind regards,</div><div>tom</div></div></div></div>