client: Strip transport parts as whitespaces could be around commas
authorLouis-Francis Ratté-Boulianne <lfrb@collabora.com>
Fri, 8 Jan 2016 23:12:14 +0000 (18:12 -0500)
committerNicolas Dufresne <nicolas.dufresne@collabora.com>
Fri, 6 Jul 2018 20:13:33 +0000 (16:13 -0400)
https://bugzilla.gnome.org/show_bug.cgi?id=758428

gst/rtsp-server/rtsp-client.c

index d76374e..11931d7 100644 (file)
@@ -1788,6 +1788,7 @@ parse_transport (const char *transport, GstRTSPStream * stream,
 
   /* loop through the transports, try to parse */
   for (i = 0; transports[i]; i++) {
+    g_strstrip (transports[i]);
     res = gst_rtsp_transport_parse (transports[i], tr);
     if (res != GST_RTSP_OK) {
       /* no valid transport, search some more */