client: support shared media
authorWim Taymans <wim.taymans@collabora.co.uk>
Fri, 3 Apr 2009 17:44:37 +0000 (19:44 +0200)
committerWim Taymans <wim@metal.(none)>
Fri, 3 Apr 2009 17:44:37 +0000 (19:44 +0200)
commitc6e1aef8819db415c69c6c4af902814e8afad7b1
tree34f20db90a906409eea2d43cdbd71117a5c23920
parent47c822bdf3c07d92844b3bf5478076515f0ee303
client: support shared media

Always perform the state actions even if the target state of the pipeline is
already correct, we still want to add/remove the transports when we are dealing
with shared media.

Keep a counter of the number of active transports for a media so that we can use
this to perform a state change when needed.

Perform a state change of the pipeline only when the first transport was added
or when there are no active transports.
gst/rtsp-server/rtsp-media.c
gst/rtsp-server/rtsp-media.h