You shouldn't worry about the server returning "a=control:track1" in
the SDP description, and thus having "/track1" appended to the
control URL that RTSP clients use internally, when sending a RTSP
"SETUP" command. RTSP clients do this automatically, and it doesn't
affect the URL that you give
It seems to me the ParseRTSPRequestString() only handles one specific RTSP URI
format and does not handle the generic allowed format. According to RFC2326
syntax and semantics for RTSP URLs is:
rtsp_URL = ( "rtsp:" | "rtspu:" )
"//" host [ ":" port ] [ abs_path ]
host