From db14343c55fb4616153a5ab783293f957c88f1b5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Olivier=20Cr=C3=AAte?= Date: Wed, 25 Mar 2015 15:24:27 -0400 Subject: rtp: Parse payloaders with multiple names --- gst/fsrtpconference/fs-rtp-discover-codecs.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/gst/fsrtpconference/fs-rtp-discover-codecs.c b/gst/fsrtpconference/fs-rtp-discover-codecs.c index f02172fd..e53fbdb2 100644 --- a/gst/fsrtpconference/fs-rtp-discover-codecs.c +++ b/gst/fsrtpconference/fs-rtp-discover-codecs.c @@ -1483,6 +1483,11 @@ extract_field_data (GQuark field_id, } else if (0 == strcmp (field_name, "encoding-name")) { + if (type == GST_TYPE_LIST) + { + value = gst_value_list_get_value (value, 0); + type = G_VALUE_TYPE (value); + } if (type != G_TYPE_STRING) { return FALSE; -- cgit v1.2.1