RTSP URL with query is failing
Submitted by Cyril
Link to original bug (#777104)
Description
Like for 706568 which is for rtsp server, the rtspsrc has an issue with URL with query value.
For example, rtspsrc set with a location of "rtsp://localhost/test?x=1" will ask for:
DESCRIBE rtsp://localhost/test?x=1 RTSP/1.0
[...]
From there the server answers with a SDP containing this:
[...]
a=control:trackid=1
[...]
Then gstreamer sends a setup request with this URL: rtsp://localhost/test?x=1/trackid=1
It should be rtsp://localhost/test/trackid=1?x=1
The former breaks on the server because the "1/trackid=1" part is (correctly) interpreted as the query parameter value for the variable x while it's not the intention for gstreamer.
This is a real issue for me when x is a session / api key that's cannot be removed from the url.
Version: 1.10.x