Aw: Re: Re: GStreamer application access violation in random locations
pfarmer
flacone at gmx.de
Tue Jan 5 06:13:28 PST 2016
Thanks!
It seems to work better. I noticed though that both logging function are active in that case (tested ith a standalone application).
The crashing does never happend in a standalone application, so unfortunetly i cannot reproduce it there. It may also arrise from multiple calling, so I added a protection like so:
if (!gst_is_initialized())
{
gst_debug_set_default_threshold(GST_LEVEL_LOG);
gst_debug_add_log_function(&gstLogFunction, NULL, NULL);
gst_debug_remove_log_function(&gst_debug_log_default);
gst_init(NULL, NULL);
}
BR
Gesendet: Dienstag, 05. Januar 2016 um 14:06 Uhr
Von: "Sebastian Dröge-3 [via GStreamer-devel]" <ml-node+s966125n4675117h29 at n4.nabble.com>
An: pfarmer <flacone at gmx.de>
Betreff: Re: Aw: Re: GStreamer application access violation in random locations
On Di, 2016-01-05 at 04:36 -0800, pfarmer wrote:
> Hello,
>
> I am not able to crash the function I posted before earlier. It
> crashed for sure once, but it may have been realated to some logging
> initialization that were still in memory at Simulink. So I narrowed
> it down to the debugging functions of gstreamer. Here the new minimal
> s-function that crashes every now and then:
> [...]
>
> Note that it also crashes with the empty gstLogFunction().
> I would like however "redirect" the the gstreamer messages to the
> Simulink output. So I would like to use those functions.
> Does someone know what I could do to avoid the crashing?
This probably does not crash if you first add your log function, then
remove the old one and only then call gst_init(). And make sure that
these 3 things are only ever done once per process.
That's only a workaround though, somewhere there is a bug hiding. Can
you also reproduce this in a standalone application?
--
Sebastian Dröge, Centricular Ltd · http://www.centricular.com
_______________________________________________
gstreamer-devel mailing list
[hidden email]
http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
signature.asc (968 bytes) Download Attachment
If you reply to this email, your message will be added to the discussion below:
http://gstreamer-devel.966125.n4.nabble.com/GStreamer-application-access-violation-in-random-locations-tp4674999p4675117.html
To start a new topic under GStreamer-devel, email ml-node+s966125n966125h77 at n4.nabble.com
To unsubscribe from GStreamer application access violation in random locations, click here .
NAML
--
View this message in context: http://gstreamer-devel.966125.n4.nabble.com/GStreamer-application-access-violation-in-random-locations-tp4674999p4675119.html
Sent from the GStreamer-devel mailing list archive at Nabble.com.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/gstreamer-devel/attachments/20160105/d9f34c37/attachment.html>
More information about the gstreamer-devel
mailing list