mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-14 05:12:09 +00:00
rtsp-client: remove query part from content-base string
Make sure that after the control url has been resolved, it's not a part of the query-string. Fixes https://bugzilla.gnome.org/show_bug.cgi?id=706568
This commit is contained in:
parent
1287b5f772
commit
ff10d24130
1 changed files with 8 additions and 1 deletions
|
@ -1632,7 +1632,7 @@ handle_describe_request (GstRTSPClient * client, GstRTSPContext * ctx)
|
|||
GstRTSPResult res;
|
||||
GstSDPMessage *sdp;
|
||||
guint i, str_len;
|
||||
gchar *str, *content_base;
|
||||
gchar *str, *str_query, *content_base;
|
||||
GstRTSPMedia *media;
|
||||
GstRTSPClientClass *klass;
|
||||
|
||||
|
@ -1676,6 +1676,13 @@ handle_describe_request (GstRTSPClient * client, GstRTSPContext * ctx)
|
|||
str = gst_rtsp_url_get_request_uri (ctx->uri);
|
||||
str_len = strlen (str);
|
||||
|
||||
/* check for query part */
|
||||
if (ctx->uri->query != NULL) {
|
||||
str_query = g_strrstr (str, "?");
|
||||
*str_query = '\0';
|
||||
str_len = strlen (str);
|
||||
}
|
||||
|
||||
/* check for trailing '/' and append one */
|
||||
if (str[str_len - 1] != '/') {
|
||||
content_base = g_malloc (str_len + 2);
|
||||
|
|
Loading…
Reference in a new issue