mount-points: improve mount point searching
authorWim Taymans <wim.taymans@collabora.co.uk>
Wed, 3 Jul 2013 08:25:46 +0000 (10:25 +0200)
committerWim Taymans <wim.taymans@collabora.co.uk>
Wed, 3 Jul 2013 08:45:51 +0000 (10:45 +0200)
commitdf08a2dd9e70c490e03e45b5dbc7ef69a1b423c9
tree3284238b3972f641f8dd2dd51e83011050b9be92
parenta22889ac082ec68cecd974cb9dbac926dc749478
mount-points: improve mount point searching

Use a GSequence to keep track of the mount points.
Match a URL to the longest matching registered mount point. This should be the
URL to perform aggreagate control and the remainder is the stream specific
control part.
Add some unit tests for this.
gst/rtsp-server/rtsp-mount-points.c
gst/rtsp-server/rtsp-mount-points.h
tests/check/gst/mountpoints.c