<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'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 <gst/gst.h><br><br>void initPipeline(GstElement **pipeline)<br>
{<br> *pipeline = gst_pipeline_new("camera");<br>}<br><br>int main(int argc, char **argv)<br>{<br> gst_init(&argc, &argv);<br> GstElement *pipeline;<br> initPipeline(&pipeline);<br> return 0;<br>
}<br></blockquote><div><br>Thx for your reply. I've already found the solution. But a little bit in another way:<br><br>void initPipeline( GstElement *& 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>