<meta http-equiv="Content-Type" content="text/html; charset=utf-8">



<div id="divtagdefaultwrapper" style="font-size:12pt;color:#000000;font-family:Calibri,Arial,Helvetica,sans-serif;" dir="ltr">
<p>Hello, <span style="color: rgb(33, 33, 33); font-size: 15px;">Sebastian </span></p>
<p><span style="color: rgb(33, 33, 33); font-size: 15px;"><br>
</span></p>
<p><span style="color: rgb(33, 33, 33); font-size: 15px;">I am happy to say, what it is not a bug.
<img class="EmojiInsert" id="OWAEmoji942586" alt="😊" style="vertical-align: bottom;" src="http://gstreamer-devel.966125.n4.nabble.com/attachment/4680850/0/%3D%3Futf-8%3FB%3FT3V0bG9va0Vtb2ppLfCfmIoucG5n%3F%3D"></span></p>
<p><span style="color: rgb(33, 33, 33); font-size: 15px;"><span>As always I used to say my teacher: it is always your fault.</span></span></p>
<p><span style="color: rgb(33, 33, 33); font-size: 15px;"><span><br>
</span></span></p>
<p><font color="#212121"><span style="font-size: 15px;">I was constantly attaching call back function:</span></font></p>
<p><span style="color: rgb(33, 33, 33); font-size: 15px;"><span></p>
<div>_bus = gst_pipeline_get_bus(GST_PIPELINE(_pipeline));</div>
<div>gst_bus_add_watch(_bus, BusCallback, this);</div>
<br>
</span></span>
<p></p>
<p><span style="color: rgb(33, 33, 33); font-size: 15px;"><span>without unref and <span>remove watch:</span></span></span></p>
<p><span style="color: rgb(33, 33, 33); font-size: 15px;"><span><span></p>
<div>gst_bus_remove_watch(_bus);</div>
<div>gst_object_unref(_bus);<br>
</div>
<div><br>
</div>
<div><span>And sooner or later GStreamer cannot manage such this amount of call backs anymore. </span><span>It is logical.</span></div>
<div><br>
</div>
<div>Thank you for GStreamer and sorry for bad programming.</div>
<div><br>
</div>
<div>Mikl</div>
<div><br>
</div>
<br>
</span></span></span>
<p></p>
<p><span style="color: rgb(33, 33, 33); font-size: 15px;"><span><br>
</span></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> Sebastian Dröge-3 [via GStreamer-devel] <ml-node+<a href="/user/SendEmail.jtp?type=node&node=4680850&i=0" target="_top" rel="nofollow" link="external">[hidden email]</a>><br>
<b>Sent:</b> Wednesday, November 9, 2016 10:33:28 AM<br>
<b>To:</b> Michael Yarochkin<br>
<b>Subject:</b> Re: Detect damaged file</font>
<div> </div>
</div>
<div>On Wed, 2016-11-09 at 01:10 -0800, Mikl wrote:
<div class="shrinkable-quote">
<div class="shrinkable-quote"><br>
> Hello, Sebastian <br>
> <br>
> This what i have <br>
> <br>
> 1. start pipeline <br>
> gst_element_set_state(_pipeline, GST_STATE_PAUSED); <br>
> <br>
> 2. start loop <br>
> g_main_loop_run(_loop); <br>
> <br>
> 3. listen for messages <br>
> BusCallback(GstBus* bus, GstMessage* message, void* data) <br>
> <br>
> 4. closing loop after done or error <br>
> case GST_MESSAGE_ASYNC_DONE: <br>
> case GST_MESSAGE_EOS: <br>
>     g_main_loop_quit(_loop); <br>
> <br>
> And i don`t have any of them, if recording pipeline was closed before <br>
> EOS And my app id hanging. </div>
</div>
So you don't get ASYNC_DONE, EOS or ERROR and gst_element_set_state() <br>
also did not return FAILURE? <br>
<br>
Please file a bug with your file in question and a testcase to <br>
reproduce the problem then. <br>
<br>
-- <br>
Sebastian Dröge, Centricular Ltd Â· <a href="http://www.centricular.com" target="_top" rel="nofollow" link="external">
http://www.centricular.com</a><br>
_______________________________________________ <br>
gstreamer-devel mailing list <br>
<a href="/user/SendEmail.jtp?type=node&node=4680573&i=0" target="_top" rel="nofollow" link="external">[hidden email]</a>
<br>
<a href="https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel" target="_top" rel="nofollow" link="external">https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel</a><br>
<!--start-attachments-->
<div class="small"><br>
<img src="http://gstreamer-devel.966125.n4.nabble.com/images/icon_attachment.gif">
<strong>signature.asc</strong> (949 bytes) <a href="http://gstreamer-devel.966125.n4.nabble.com/attachment/4680573/0/signature.asc" target="_top" rel="nofollow" link="external">
Download Attachment</a></div>
<!--end-attachments--><br>
<br>
<hr noshade="noshade" size="1" color="#cccccc">
<div style="color:#444; font: 12px tahoma,geneva,helvetica,arial,sans-serif;">
<div style="font-weight:bold">If you reply to this email, your message will be added to the discussion below:</div>
<a href="http://gstreamer-devel.966125.n4.nabble.com/Detect-damaged-file-tp4680534p4680573.html" target="_top" rel="nofollow" link="external">http://gstreamer-devel.966125.n4.nabble.com/Detect-damaged-file-tp4680534p4680573.html</a>
</div>
<div style="color:#666; font: 11px tahoma,geneva,helvetica,arial,sans-serif;margin-top:.4em;line-height:1.5em">
To unsubscribe from Detect damaged file, <a href="" target="_top" rel="nofollow" link="external">
click here</a>.<br>
<a href="http://gstreamer-devel.966125.n4.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml" rel="nofollow" style="font:9px serif" target="_top" link="external">NAML</a>
</div>
</div>




        
        
        
<br/><hr align="left" width="300" />
View this message in context: <a href="http://gstreamer-devel.966125.n4.nabble.com/Detect-damaged-file-tp4680534p4680850.html">Re: Detect damaged file</a><br/>
Sent from the <a href="http://gstreamer-devel.966125.n4.nabble.com/">GStreamer-devel mailing list archive</a> at Nabble.com.<br/>