Commit 85a56f8e authored by Stian Selnes's avatar Stian Selnes Committed by Olivier Crête

rtpsession: handle sdes messages with non-utf8 more gracefully

parent 898d240f
......@@ -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);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment