mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-23 15:48:23 +00:00
rtpsession: handle sdes messages with non-utf8 more gracefully
This commit is contained in:
parent
898d240faa
commit
85a56f8ee3
1 changed files with 5 additions and 1 deletions
|
@ -2393,7 +2393,11 @@ rtp_session_process_sdes (RTPSession * sess, GstRTCPPacket * packet,
|
|||
|
||||
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);
|
||||
|
|
Loading…
Reference in a new issue