rtsp-stream: Have one copy of the transports cache for RTP and RTCP each
authorGöran Jönsson <goranjn@axis.com>
Fri, 16 Jan 2015 10:10:20 +0000 (11:10 +0100)
committerSebastian Dröge <sebastian@centricular.com>
Fri, 16 Jan 2015 11:52:43 +0000 (12:52 +0100)
commit0d2de69db99670451bc7a39d921dc5636fd94cec
tree6564f20c4282387ec28e2eb49d4265d652694057
parentfe8e877dd9585ccd9a329832ce09a136fd155b5d
rtsp-stream: Have one copy of the transports cache for RTP and RTCP each

Fixes crash when two threads access handle_new_sample() at the same
time, one for RTP, one for RTCP.

Otherwise, when iterating over the transports cache, it might be modified by
another thread at the same time if the transports cookie has changed.

https://bugzilla.gnome.org/show_bug.cgi?id=742954
gst/rtsp-server/rtsp-stream.c