gst/rtsp/gstrtspsrc.c: Strip spaces for key/value pairs.
authorWim Taymans <wim.taymans@gmail.com>
Wed, 21 Sep 2005 19:41:45 +0000 (19:41 +0000)
committerWim Taymans <wim.taymans@gmail.com>
Wed, 21 Sep 2005 19:41:45 +0000 (19:41 +0000)
Original commit message from CVS:
* gst/rtsp/gstrtspsrc.c: (gst_rtspsrc_parse_rtpmap),
(gst_rtspsrc_media_to_caps), (gst_rtspsrc_stream_setup_rtp),
(gst_rtspsrc_send):
Strip spaces for key/value pairs.

ChangeLog
gst/rtsp/gstrtspsrc.c

index 975c8199496e88441d74a56bd2f055e6de438425..0f8c48c782e5518e1edee131098f4b3700cd813c 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2005-09-21  Wim Taymans  <wim@fluendo.com>
+
+       * gst/rtsp/gstrtspsrc.c: (gst_rtspsrc_parse_rtpmap),
+       (gst_rtspsrc_media_to_caps), (gst_rtspsrc_stream_setup_rtp),
+       (gst_rtspsrc_send):
+       Strip spaces for key/value pairs.
+
 2005-09-21  Wim Taymans  <wim@fluendo.com>
 
        * gst/rtsp/gstrtspsrc.c: (gst_rtspsrc_parse_rtpmap),
index b36813b7b5602e1a66c6550b8850cca2c2d4b7bf..da6e79bf27ea22ed93ebb5e6c34cd9a13bc84bb1 100644 (file)
@@ -449,14 +449,16 @@ gst_rtspsrc_media_to_caps (SDPMedia * media)
 
         keyval = g_strsplit (pairs[i], "=", 0);
         if (keyval[0]) {
-          gchar *val;
+          gchar *val, *key;
 
           if (keyval[1])
-            val = keyval[1];
+            val = g_strstrip (keyval[1]);
           else
             val = "1";
 
-          gst_structure_set (s, keyval[0], G_TYPE_STRING, val, NULL);
+          key = g_strstrip (keyval[0]);
+
+          gst_structure_set (s, key, G_TYPE_STRING, val, NULL);
         }
         g_strfreev (keyval);
       }