[Bug 764744] Crash when using a shared factory and TLS

GStreamer (GNOME Bugzilla) bugzilla at gnome.org
Tue Apr 12 20:28:09 UTC 2016


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

--- Comment #9 from Jake Foytik <jake.foytik at ipconfigure.com> ---
Sebastian, I think I may have narrowed in on the problem.

When connecting the client to the server, the
gst_rtsp_stream_allocate_udp_sockets() function is called which in our case
allocates two udpsrc elements in stream->priv->udpsrc_v4[0] and
stream->priv->udpsrc_v4[1]. When another client connects to the server and
we're dealing with a media configured to be shared,
gst_rtsp_stream_allocate_udp_sockets() is called with the same stream. Thus,
two new udpsrc elements are created and the pointers stored in
stream->priv->udpsrc_v4[0] and stream->priv->udpsrc_v4[1]. The previous
pointers were overwritten and now it looks like we have leaked the old
udpsrc_v4[0] and the old udpsrc_v4[1] is now managed/owned by a bin element.
Furthermore, it looks like udpsrc_v4[1] is configured to be locked with the
function gst_element_set_locked_state(), so now when the bin is set to NULL
state this element will remain in its PLAYING state which eventually becomes a
problem when unreffing the bin.

-- 
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