client: keep ref to client for the session removed handler
authorOgnyan Tonchev <ognyan@axis.com>
Wed, 9 Jul 2014 13:01:31 +0000 (15:01 +0200)
committerWim Taymans <wtaymans@redhat.com>
Wed, 9 Jul 2014 14:16:50 +0000 (16:16 +0200)
commite0bc97e40cdf49de2911038c92275b6181113ba6
tree422b24af7caa6d438a2195f5bd6b4ef771da78cb
parent5aec4af1b96ef5bddfc02a015e9cec3488c89f4a
client: keep ref to client for the session removed handler

This extra ref will be dropped when all client sessions have been
removed. A session is removed when a client sends teardown, closes its
endpoint of the TCP connection or the sessions expires.

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