rtsp-stream: Fix crash on cleanup with shared media and multiple udpsrc
authorJake Foytik <jake.foytik@ipconfigure.com>
Mon, 25 Apr 2016 12:55:25 +0000 (08:55 -0400)
committerSebastian Dröge <sebastian@centricular.com>
Fri, 29 Apr 2016 08:49:14 +0000 (11:49 +0300)
commitfe5f8077c1523206147c746cc40364ea16da669f
tree5db07f69e50cfa166d8b752c36ca0ed132ff4468
parentaa9a2443a1d303727167b5b253e09e31fea6f09b
rtsp-stream: Fix crash on cleanup with shared media and multiple udpsrc

 - Unicast udpsrcs are now managed in a hash table. This allows for proper cleanup in with shared streams and fixes a memory leak.
 - Unicast udpsrcs are now properly cleaned up when shared connections exit. See the update_transport() function.
 - Create unit test for shared media.

https://bugzilla.gnome.org/show_bug.cgi?id=764744
gst/rtsp-server/rtsp-stream.c
tests/check/gst/rtspserver.c
tests/check/gst/stream.c