<br><br><div class="gmail_quote"><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">You&#39;re passing the pointer by value, you need to pass its address. Also, you need to call gst_init beforehand, so your code should look like:<br>
<br>#include &lt;gst/gst.h&gt;<br><br>void initPipeline(GstElement **pipeline)<br>
{<br>    *pipeline = gst_pipeline_new(&quot;camera&quot;);<br>}<br><br>int main(int argc, char **argv)<br>{<br>    gst_init(&amp;argc, &amp;argv);<br>    GstElement *pipeline;<br>    initPipeline(&amp;pipeline);<br>    return 0;<br>

}<br></blockquote><div><br>Thx for your reply. I&#39;ve already found the solution. But a little bit in another way:<br><br>void initPipeline( GstElement *&amp; pipeline )<br>{<br>  pipeline = ...<br>}<br><br>void main()<br>
{<br>  ...<br>  GstElement * pipeline;<br>  initPipeline( pipeline );<br>  ...<br>} <br></div></div><br><br clear="all"><br>-- <br>Regards,<br>Igor Mironchick<br>