projects
/
platform
/
upstream
/
gstreamer.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
898d240
)
rtpsession: handle sdes messages with non-utf8 more gracefully
author
Stian Selnes
<stian@pexip.com>
Mon, 30 Jun 2014 13:07:45 +0000
(15:07 +0200)
committer
Olivier CrĂȘte
<olivier.crete@collabora.com>
Thu, 25 Aug 2016 22:28:44 +0000
(18:28 -0400)
gst/rtpmanager/rtpsession.c
patch
|
blob
|
history
diff --git
a/gst/rtpmanager/rtpsession.c
b/gst/rtpmanager/rtpsession.c
index 553d7937440522364cf60d7e114b9070e1a16af8..e3bf338cd6e678ec3b843cad9c14637c71421111 100644
(file)
--- a/
gst/rtpmanager/rtpsession.c
+++ b/
gst/rtpmanager/rtpsession.c
@@
-2393,7
+2393,11
@@
rtp_session_process_sdes (RTPSession * sess, GstRTCPPacket * packet,
value = g_strndup ((const gchar *) data, len);
value = g_strndup ((const gchar *) data, len);
- gst_structure_set (sdes, name, G_TYPE_STRING, value, NULL);
+ if (g_utf8_validate (value, -1, NULL)) {
+ gst_structure_set (sdes, name, G_TYPE_STRING, value, NULL);
+ } else {
+ GST_WARNING ("ignore SDES field %s with non-utf8 data %s", name, value);
+ }
g_free (name);
g_free (value);
g_free (name);
g_free (value);