From 7698d8bc4a159a5bbadc7b717caaa659078211d2 Mon Sep 17 00:00:00 2001 From: Wim Taymans Date: Fri, 10 Sep 2010 18:01:18 +0200 Subject: [PATCH] rtspsrc: use sdp uri parse method Use the sdp parse method that does proper uri escaping. --- gst/rtsp/gstrtspsrc.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/gst/rtsp/gstrtspsrc.c b/gst/rtsp/gstrtspsrc.c index 1c05c652b9..66190b6b05 100644 --- a/gst/rtsp/gstrtspsrc.c +++ b/gst/rtsp/gstrtspsrc.c @@ -6194,9 +6194,7 @@ gst_rtspsrc_uri_set_uri (GstURIHandler * handler, const gchar * uri) goto sdp_failed; GST_DEBUG_OBJECT (src, "parsing SDP message"); - if ((res = - gst_sdp_message_parse_buffer ((const guint8 *) uri, strlen (uri), - sdp) < 0)) + if ((res = gst_sdp_message_parse_uri (uri, sdp) < 0)) goto invalid_sdp; } else { /* try to parse */