<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
</head>
<body>
<style type="text/css" style="display:none;"><!-- P {margin-top:0;margin-bottom:0;} --></style>
<div id="divtagdefaultwrapper" style="font-size:12pt;color:#000000;font-family:Calibri,Arial,Helvetica,sans-serif;" dir="ltr">
Hello
<div><br>
</div>
<div>Do you really need to do unref on pipeline?</div>
<div><br>
</div>
<div>Mikl</div>
</div>
<hr style="display:inline-block;width:98%" tabindex="-1">
<div id="divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" style="font-size:11pt" color="#000000"><b>From:</b> gstreamer-devel <gstreamer-devel-bounces@lists.freedesktop.org> on behalf of ÕÅÈô <zr92zr@gmail.com><br>
<b>Sent:</b> Tuesday, November 15, 2016 3:45:16 PM<br>
<b>To:</b> Discussion of the development of and with GStreamer<br>
<b>Subject:</b> mxc_v4l_dqueue timeout enc_counter 0</font>
<div> </div>
</div>
<div>
<div dir="ltr">Hi,
<div><br>
</div>
<div>I got a problem while setting the pipeline state to NULL and unref that pipeline.</div>
<div><br>
</div>
<div>In my code, I need to stop two pipelines (imxv4l2src are two cameras) and start two new pipelines. While stopping current pipelines, I use:</div>
<div>
<div>gst_element_set_state (pipeline1, GST_STATE_NULL); </div>
<div>gst_object_unref (pipeline1);</div>
<div>gst_element_set_state (pipeline2, GST_STATE_NULL); </div>
<div>gst_object_unref (pipeline2); </div>
</div>
<div><br>
</div>
<div>Sometimes, when it runs here, the program will stuck for a while and show an error or 2 errors (because of 2 cameras) as:</div>
<div>ERROR: v4l2 capture: mxc_v4l_dqueue timeout enc_counter 0<br>
</div>
<div><br>
</div>
<div>It is strange to me because it doesn't occur every time when it runs here. And although this problem occurs, finally those two old pipelines can be removed and new pipelines can run correctly. The only problem is that it will stuck for a while when errors
 happen.</div>
<div><br>
</div>
<div>Is it the problem with the cameras themselves?</div>
<div><br>
</div>
<div>Thanks in advance!</div>
</div>
</div>
</body>
</html>