projects
/
platform
/
upstream
/
gst-plugins-good.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
654ca56
)
rtspsrc: don't add non-utf8 chars to structures
author
Wim Taymans
<wim.taymans@collabora.co.uk>
Mon, 3 Aug 2009 16:13:46 +0000
(18:13 +0200)
committer
Wim Taymans
<wim.taymans@collabora.co.uk>
Mon, 3 Aug 2009 16:13:46 +0000
(18:13 +0200)
gst/rtsp/gstrtspsrc.c
patch
|
blob
|
history
diff --git
a/gst/rtsp/gstrtspsrc.c
b/gst/rtsp/gstrtspsrc.c
index
267765e
..
050e151
100644
(file)
--- a/
gst/rtsp/gstrtspsrc.c
+++ b/
gst/rtsp/gstrtspsrc.c
@@
-1042,6
+1042,10
@@
gst_rtspsrc_sdp_attributes_to_caps (GArray * attributes, GstCaps * caps)
if (!strcmp (key, "range"))
continue;
+ /* string must be valid UTF8 */
+ if (!g_utf8_validate (attr->value, -1, NULL))
+ continue;
+
if (!g_str_has_prefix (key, "x-"))
tofree = key = g_strdup_printf ("a-%s", key);
else