<div dir="ltr">I once tried not to unref the pipeline. However, when I want to play that pipeline again later, there will be a large switch latency and delay, also many previous frames displayed at the beginning. I don't know why and how to deal with that. Therefore, I just unref pipeline and build the full pipeline and elements inside again.</div><div class="gmail_extra"><br><div class="gmail_quote">2016-11-17 11:23 GMT+01:00 Michael Yarochkin <span dir="ltr"><<a href="mailto:michael.yarochkin@timetronics.be" target="_blank">michael.yarochkin@timetronics.be</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div>
<div id="m_1032064990387417255divtagdefaultwrapper" 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%">
<div id="m_1032064990387417255divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" style="font-size:11pt" color="#000000"><b>From:</b> gstreamer-devel <<a href="mailto:gstreamer-devel-bounces@lists.freedesktop.org" target="_blank">gstreamer-devel-bounces@<wbr>lists.freedesktop.org</a>> on behalf of 张若 <<a href="mailto:zr92zr@gmail.com" target="_blank">zr92zr@gmail.com</a>><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 class="h5">
<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>
</div></div></div>
<br>______________________________<wbr>_________________<br>
gstreamer-devel mailing list<br>
<a href="mailto:gstreamer-devel@lists.freedesktop.org">gstreamer-devel@lists.<wbr>freedesktop.org</a><br>
<a href="https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel" rel="noreferrer" target="_blank">https://lists.freedesktop.org/<wbr>mailman/listinfo/gstreamer-<wbr>devel</a><br>
<br></blockquote></div><br></div>