<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">
<p>Hi</p>
<p><br>
</p>
<p>In my app, i am not doing any of unref at all. GStreamer is taking care about it.</p>
<p>Recreating all elements every time i need to play something Even for the same file.</p>
<p><span style="font-size: 12pt;"><br>
</span></p>
<p><span style="font-size: 12pt;"><span style="font-family: Calibri, Arial, Helvetica, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", NotoColorEmoji, "Segoe UI Symbol", "Android Emoji", EmojiSymbols; font-size: 16px;">And once you are unref element, </span><span style="font-family: Calibri, Arial, Helvetica, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", NotoColorEmoji, "Segoe UI Symbol", "Android Emoji", EmojiSymbols; font-size: 16px;">which </span><span style="font-family: Calibri, Arial, Helvetica, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", NotoColorEmoji, "Segoe UI Symbol", "Android Emoji", EmojiSymbols; font-size: 16px;">should
be cleaned up in another place, you can cause memory access exception.</span><br>
</span></p>
<p><span style="font-size: 12pt;"><span style="font-family: Calibri, Arial, Helvetica, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", NotoColorEmoji, "Segoe UI Symbol", "Android Emoji", EmojiSymbols; font-size: 16px;"><br>
</span></span></p>
<p><span style="font-size: 12pt;">Because you are talking about frames from </span><span style="font-size: 12pt;">the past, it can be you are reusing the same elements in your new pipeline.</span><br>
</p>
<p><span style="font-size: 12pt;"><br>
</span></p>
<p><span style="font-size: 12pt;">Do you want me to send you my library?</span></p>
<p><span style="font-size: 12pt;"><br>
</span></p>
<p><span style="font-size: 12pt;">Mikl</span></p>
</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> Thursday, November 17, 2016 5:39:54 PM<br>
<b>To:</b> Discussion of the development of and with GStreamer<br>
<b>Subject:</b> Re: mxc_v4l_dqueue timeout enc_counter 0</font>
<div> </div>
</div>
<div>
<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>
</div>
</body>
</html>