<br><br><div class="gmail_quote">On Mon, Jul 5, 2010 at 5:11 AM, Albert Costa <span dir="ltr">&lt;<a href="mailto:costa_albert@yahoo.fr">costa_albert@yahoo.fr</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
<div><div style="font-family: &#39;times new roman&#39;,&#39;new york&#39;,times,serif; font-size: 12pt;"><div><br><div>  MyInfo* myinfo = new MyInfo;</div><div>  /* do stuff with myinfo, including allocating internal data */</div>
<div><br></div><div>  structure = gst_structure_new(&quot;FILTERMESSAGE&quot;,</div><div>    &quot;info&quot;, G_TYPE_POINTER, (gpointer)myinfo, </div><div>    NULL); </div><div>  msg =
 gst_message_new_application(NULL,structure);</div><div>  gst_bus_post (bus, msg);</div></div><div><br></div><div><br></div></div></div></blockquote><div><br>According to the docs, gst_message_new_application will take ownership of the structure, so you should release it after you call gst_message_new_application.<br>
<br>Hope that helps.<br></div></div><br>Rob<br>