[Bug 752651] decodebin: segfault on setting to NULL

GStreamer (GNOME Bugzilla) bugzilla at gnome.org
Fri Oct 23 06:20:36 PDT 2015


https://bugzilla.gnome.org/show_bug.cgi?id=752651

--- Comment #41 from Sebastian Dröge (slomo) <slomo at coaxion.net> ---
(In reply to Vincent Penquerc'h from comment #40)

> I don't really get the comment about the ref on the signal connect. I don't
> think that'd help anyway, as the signal might have been just triggered at
> the time the chain starts getting destroyed (ie, the chain starts getting
> destroyed just after pad_added_cb released the chain mutex lock, but before
> analyze_new_pad is called.

My assumption was that destroying the chain would only happen then once the
signal is actually disconnected (i.e. the element we connected to gets
destroyed). If you use g_signal_connect_data() and pass as GDestroyNotify the
unref function of the chain, then the last reference of the chain will never
get to refcount 0 while the signal is still connected (or being emitted).

-- 
You are receiving this mail because:
You are the QA Contact for the bug.
You are the assignee for the bug.


More information about the gstreamer-bugs mailing list