sdp: parse encryption key field

* gst-libs/gst/sdp/gstsdpmessage.c: parse encryption key field (k).

  https://bugzilla.gnome.org/show_bug.cgi?id=720215
This commit is contained in:
Aleix Conchillo Flaqué 2013-12-10 13:54:28 -08:00 committed by Olivier Crête
parent 51038d70aa
commit 7a7ae7d5f4

View file

@ -2874,6 +2874,13 @@ gst_sdp_parse_line (SDPContext * c, gchar type, gchar * buffer)
case 't': case 't':
break; break;
case 'k': case 'k':
read_string_del (str, sizeof (str), ':', &p);
if (*p != '\0')
p++;
if (c->state == SDP_SESSION)
gst_sdp_message_set_key (c->msg, str, p);
else
gst_sdp_media_set_key (c->media, str, p);
break; break;
case 'a': case 'a':
read_string_del (str, sizeof (str), ':', &p); read_string_del (str, sizeof (str), ':', &p);