summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOlivier CrĂȘte <olivier.crete@collabora.com>2015-03-25 15:24:27 -0400
committerOlivier CrĂȘte <olivier.crete@collabora.com>2015-03-25 15:24:27 -0400
commitdb14343c55fb4616153a5ab783293f957c88f1b5 (patch)
treea134fdae1ec50c145e2edf15450b218f37caeaf7
parent2b085b0a3a37cf87e4a9ccf6b2de50a3fc236de3 (diff)
downloadfarstream-db14343c55fb4616153a5ab783293f957c88f1b5.tar.gz
rtp: Parse payloaders with multiple names
-rw-r--r--gst/fsrtpconference/fs-rtp-discover-codecs.c5
1 files changed, 5 insertions, 0 deletions
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;