<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<meta name="Generator" content="Microsoft Exchange Server">
<!-- converted from text --><style><!-- .EmailQuote { margin-left: 1pt; padding-left: 4pt; border-left: #800000 2px solid; } --></style>
</head>
<body>
<meta content="text/html; charset=UTF-8">
<style type="text/css" style="">
<!--
p
        {margin-top:0;
        margin-bottom:0}
-->
</style>
<div dir="ltr">
<div id="x_divtagdefaultwrapper" dir="ltr" style="font-size:12pt; color:#000000; font-family:Calibri,Arial,Helvetica,sans-serif">
<p>Hi</p>
<p><br>
</p>
<p>Here it is.</p>
<p><br>
</p>
<p>I have no idea about <span style="color:rgb(33,33,33); font-size:13.3333px">mxc_v4l_dqueue . Sorry.</span></p>
<p><br>
</p>
<p>Mikl</p>
</div>
<hr tabindex="-1" style="display:inline-block; width:98%">
<div id="x_divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" color="#000000" style="font-size:11pt"><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 7:56:16 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>
<font size="2"><span style="font-size:10pt;">
<div class="PlainText">OK, that's should be great and I can get some ideas from that! Thank you!<br>
However, on the other hand, the mxc_v4l_dqueue timeout enc_conunter()<br>
errors seem to be related to set the pipeline to NULL state. For that<br>
one, do you have some ideas and recommendations?<br>
<br>
<br>
2016-11-17 19:48 GMT+01:00, Michael Yarochkin<br>
<michael.yarochkin@timetronics.be>:<br>
> Hi<br>
><br>
><br>
> In my app, i am not doing any of unref at all. GStreamer is taking care<br>
> about it.<br>
><br>
> Recreating all elements every time i need to play something Even for the<br>
> same file.<br>
><br>
><br>
> And once you are unref element, which should be cleaned up in another place,<br>
> you can cause memory access exception.<br>
><br>
><br>
> Because you are talking about frames from the past, it can be you are<br>
> reusing the same elements in your new pipeline.<br>
><br>
><br>
> Do you want me to send you my library?<br>
><br>
><br>
> Mikl<br>
><br>
> ________________________________<br>
> From: gstreamer-devel <gstreamer-devel-bounces@lists.freedesktop.org> on<br>
> behalf of ÕÅÈô <zr92zr@gmail.com><br>
> Sent: Thursday, November 17, 2016 5:39:54 PM<br>
> To: Discussion of the development of and with GStreamer<br>
> Subject: Re: mxc_v4l_dqueue timeout enc_counter 0<br>
><br>
> I once tried not to unref the pipeline. However, when I want to play that<br>
> pipeline again later, there will be a large switch latency and delay, also<br>
> many previous frames displayed at the beginning. I don't know why and how to<br>
> deal with that. Therefore, I just unref pipeline and build the full pipeline<br>
> and elements inside again.<br>
><br>
> 2016-11-17 11:23 GMT+01:00 Michael Yarochkin<br>
> <michael.yarochkin@timetronics.be<mailto:michael.yarochkin@timetronics.be>>:<br>
> Hello<br>
><br>
> Do you really need to do unref on pipeline?<br>
><br>
> Mikl<br>
> ________________________________<br>
> From: gstreamer-devel<br>
> <gstreamer-devel-bounces@lists.freedesktop.org<mailto:gstreamer-devel-bounces@lists.freedesktop.org>><br>
> on behalf of ÕÅÈô <zr92zr@gmail.com<mailto:zr92zr@gmail.com>><br>
> Sent: Tuesday, November 15, 2016 3:45:16 PM<br>
> To: Discussion of the development of and with GStreamer<br>
> Subject: mxc_v4l_dqueue timeout enc_counter 0<br>
><br>
> Hi,<br>
><br>
> I got a problem while setting the pipeline state to NULL and unref that<br>
> pipeline.<br>
><br>
> In my code, I need to stop two pipelines (imxv4l2src are two cameras) and<br>
> start two new pipelines. While stopping current pipelines, I use:<br>
> gst_element_set_state (pipeline1, GST_STATE_NULL);<br>
> gst_object_unref (pipeline1);<br>
> gst_element_set_state (pipeline2, GST_STATE_NULL);<br>
> gst_object_unref (pipeline2);<br>
><br>
> Sometimes, when it runs here, the program will stuck for a while and show an<br>
> error or 2 errors (because of 2 cameras) as:<br>
> ERROR: v4l2 capture: mxc_v4l_dqueue timeout enc_counter 0<br>
><br>
> It is strange to me because it doesn't occur every time when it runs here.<br>
> And although this problem occurs, finally those two old pipelines can be<br>
> removed and new pipelines can run correctly. The only problem is that it<br>
> will stuck for a while when errors happen.<br>
><br>
> Is it the problem with the cameras themselves?<br>
><br>
> Thanks in advance!<br>
><br>
> _______________________________________________<br>
> gstreamer-devel mailing list<br>
> gstreamer-devel@lists.freedesktop.org<mailto:gstreamer-devel@lists.freedesktop.org><br>
> <a href="https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel">https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel</a><br>
><br>
><br>
><br>
_______________________________________________<br>
gstreamer-devel mailing list<br>
gstreamer-devel@lists.freedesktop.org<br>
<a href="https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel">https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel</a><br>
</div>
</span></font>
</body>
</html>