diff options
| author | Wim Taymans <wim.taymans@gmail.com> | 2005-09-21 19:41:45 +0000 | 
|---|---|---|
| committer | Wim Taymans <wim.taymans@gmail.com> | 2005-09-21 19:41:45 +0000 | 
| commit | 001a51dba26823044b64aa50bed98fa11c0e90b3 (patch) | |
| tree | 2ba4303fd9f8b80ddb6251d50ecee2dc366d7c65 | |
| parent | 485d25aef1318f18e41c6b6f224deb37149d9632 (diff) | |
gst/rtsp/gstrtspsrc.c: Strip spaces for key/value pairs.
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.
| -rw-r--r-- | ChangeLog | 7 | ||||
| -rw-r--r-- | gst/rtsp/gstrtspsrc.c | 8 | 
2 files changed, 12 insertions, 3 deletions
@@ -2,6 +2,13 @@  	* 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), +	(gst_rtspsrc_media_to_caps), (gst_rtspsrc_stream_setup_rtp),  	(gst_rtspsrc_stream_configure_transport), (gst_rtspsrc_send),  	(gst_rtspsrc_change_state):  	More SDP parsing and caps setting. diff --git a/gst/rtsp/gstrtspsrc.c b/gst/rtsp/gstrtspsrc.c index b36813b7..da6e79bf 100644 --- a/gst/rtsp/gstrtspsrc.c +++ b/gst/rtsp/gstrtspsrc.c @@ -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);        }  | 
