mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-21 15:56:42 +00:00
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.
This commit is contained in:
parent
485d25aef1
commit
001a51dba2
2 changed files with 12 additions and 3 deletions
|
@ -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),
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue