rtsp: Don't use invalid sockets
authorOgnyan Tonchev <ognyan@axis.com>
Thu, 25 Oct 2012 07:19:21 +0000 (09:19 +0200)
committerWim Taymans <wim.taymans@collabora.co.uk>
Thu, 25 Oct 2012 15:59:47 +0000 (17:59 +0200)
commit6e5ea441e7896c6bcbb505d0f1e428fafcbada30
tree349771e0050f53fb8c8ce51ee443d456359b821a
parent883dc4184894d7347d4a10cc17773fb9ed74e1a7
rtsp: Don't use invalid sockets

return false from dispatch () if the read and write sockets have been
unset in tunnel_complete ()

Setting up HTTP tunnels causes segfaults since the watch for the second
connection is not destroyed anymore in tunnel_complete () and the connection
will still be used even though it is not valid anymore.

Fixes https://bugzilla.gnome.org/show_bug.cgi?id=686276
gst-libs/gst/rtsp/gstrtspconnection.c