client: simplify session transport handling
authorWim Taymans <wtaymans@redhat.com>
Tue, 9 Sep 2014 16:11:39 +0000 (18:11 +0200)
committerWim Taymans <wtaymans@redhat.com>
Tue, 16 Sep 2014 08:46:13 +0000 (10:46 +0200)
commit0292be09eaf338f16c752aee0c317b1e6b3971e2
treeb8baffbf1be03e51a69930ca5f14427e9c5fbace
parentea5d4cfc7e29d010c0d7b6a2f606de76a6d117f4
client: simplify session transport handling

link/unlink of the transport in a session was done to keep track of all
TCP transports and to send RTP/RTCP data to the streams. We can simplify
that by putting all the TCP transports in a hashtable indexed with the
channel number.

We also don't need to link/unlink the transports when we pause/resume
the streams. The same effect is already achieved when we pause/play the
media. Indeed, when we pause the media, the transport is removed from
the media and the callbacks will not be called anymore.

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