client: destroy pipeline on client disconnect with no prior TEARDOWN.
authorRobert Krakora <rob.krakora at messagenetsystems.com>
Tue, 16 Aug 2011 10:09:48 +0000 (12:09 +0200)
committerWim Taymans <wim.taymans@collabora.co.uk>
Tue, 16 Aug 2011 10:09:48 +0000 (12:09 +0200)
commitf7223cfdab653409cd92d117c906de166b00623b
tree38a7f4c5d472e34bd27f4c59c9ca89546c16f019
parent5dc9e76125466be7990187b78000b1df32704312
client: destroy pipeline on client disconnect with no prior TEARDOWN.

The problem occurs when the client abruptly closes the connection without
issuing a TEARDOWN.  The TEARDOWN handler in the rtsp-client.c file of the RTSP
server is where the pipeline gets torn down.  Since this handler is not called,
the pipeline remains and is up and running.  Subsequent clients get their own
pipelines and if the do not issue TEARDOWNs then those pipelines will also
remain up and running.  This is a resource leak.
gst/rtsp-server/rtsp-client.c