[Bug 736041] Protect rtsp transport data.

GStreamer (bugzilla.gnome.org) bugzilla at gnome.org
Tue Sep 9 04:24:33 PDT 2014


https://bugzilla.gnome.org/show_bug.cgi?id=736041
  GStreamer | gst-rtsp-server | unspecified

--- Comment #7 from Wim Taymans <wim.taymans at gmail.com> 2014-09-09 11:24:26 UTC ---
The problem is in how this code is structured. There is no locking in
stream_transport because it is all supposed to be locked from the stream and
media objects.

Adding those locks is rather pointless because the objects (transport, url) are
not refcounted outside of the locks.

Adding a lock around the function call is usually done with a recursive mutex.
This would add overhead, I think I have a better idea by restructuring the code
a little. Let me propose another patch.

-- 
Configure bugmail: https://bugzilla.gnome.org/userprefs.cgi?tab=email
------- 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