Detect damaged file

Mikl michael.yarochkin at timetronics.be
Thu Nov 24 08:00:31 UTC 2016


Hello, Sebastian


I am happy to say, what it is not a bug. [😊]

As always I used to say my teacher: it is always your fault.


I was constantly attaching call back function:

_bus = gst_pipeline_get_bus(GST_PIPELINE(_pipeline));
gst_bus_add_watch(_bus, BusCallback, this);


without unref and remove watch:

gst_bus_remove_watch(_bus);
gst_object_unref(_bus);

And sooner or later GStreamer cannot manage such this amount of call backs anymore. It is logical.

Thank you for GStreamer and sorry for bad programming.

Mikl




________________________________
From: Sebastian Dröge-3 [via GStreamer-devel] <ml-node+s966125n4680573h12 at n4.nabble.com>
Sent: Wednesday, November 9, 2016 10:33:28 AM
To: Michael Yarochkin
Subject: Re: Detect damaged file

On Wed, 2016-11-09 at 01:10 -0800, Mikl wrote:

> Hello, Sebastian
>
> This what i have
>
> 1. start pipeline
> gst_element_set_state(_pipeline, GST_STATE_PAUSED);
>
> 2. start loop
> g_main_loop_run(_loop);
>
> 3. listen for messages
> BusCallback(GstBus* bus, GstMessage* message, void* data)
>
> 4. closing loop after done or error
> case GST_MESSAGE_ASYNC_DONE:
> case GST_MESSAGE_EOS:
>     g_main_loop_quit(_loop);
>
> And i don`t have any of them, if recording pipeline was closed before
> EOS And my app id hanging.
So you don't get ASYNC_DONE, EOS or ERROR and gst_element_set_state()
also did not return FAILURE?

Please file a bug with your file in question and a testcase to
reproduce the problem then.

--
Sebastian Dröge, Centricular Ltd · http://www.centricular.com
_______________________________________________
gstreamer-devel mailing list
[hidden email]</user/SendEmail.jtp?type=node&node=4680573&i=0>
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel

[http://gstreamer-devel.966125.n4.nabble.com/images/icon_attachment.gif] signature.asc (949 bytes) Download Attachment<http://gstreamer-devel.966125.n4.nabble.com/attachment/4680573/0/signature.asc>


________________________________
If you reply to this email, your message will be added to the discussion below:
http://gstreamer-devel.966125.n4.nabble.com/Detect-damaged-file-tp4680534p4680573.html
To unsubscribe from Detect damaged file, click here<http://gstreamer-devel.966125.n4.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_code&node=4680534&code=bWljaGFlbC55YXJvY2hraW5AdGltZXRyb25pY3MuYmV8NDY4MDUzNHwyMDkyNzIxODU=>.
NAML<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>


=?utf-8?B?T3V0bG9va0Vtb2ppLfCfmIoucG5n?= (670 bytes) <http://gstreamer-devel.966125.n4.nabble.com/attachment/4680850/0/%3D%3Futf-8%3FB%3FT3V0bG9va0Vtb2ppLfCfmIoucG5n%3F%3D>




--
View this message in context: http://gstreamer-devel.966125.n4.nabble.com/Detect-damaged-file-tp4680534p4680850.html
Sent from the GStreamer-devel mailing list archive at Nabble.com.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/gstreamer-devel/attachments/20161124/2f296e2f/attachment.html>


More information about the gstreamer-devel mailing list