Client: keep a ref to the session
authorWim Taymans <wtaymans@redhat.com>
Tue, 1 Jul 2014 10:13:47 +0000 (12:13 +0200)
committerWim Taymans <wtaymans@redhat.com>
Tue, 1 Jul 2014 10:28:41 +0000 (12:28 +0200)
commitfe081e73015dc269d585f4be3efbc0d93ead128b
tree17f42eebf8e77345040d343c6c5516fe7e62ba81
parent964ca3c98842c5dd7d640b81bc018c0a6687c4ef
Client: keep a ref to the session

Don't just keep a weak ref to the session objects but use a hard ref. We
will be notified when a session is removed from the pool (expired) with
the new session-removed signal.
Don't automatically close the RTSP connection when all the sessions of
a client are removed, a client can continue to operate and it can create
a new session if it wants. If you want to remove the client from the
server, you have to use gst_rtsp_server_client_filter() now.

Based on patch from Ognyan Tonchev <ognyan.tonchev at axis.com>

See https://bugzilla.gnome.org/show_bug.cgi?id=732226
gst/rtsp-server/rtsp-client.c