diff options
author | Olivier CrĂȘte <olivier.crete@collabora.com> | 2015-03-25 15:24:13 -0400 |
---|---|---|
committer | Olivier CrĂȘte <olivier.crete@collabora.com> | 2015-03-25 15:24:13 -0400 |
commit | 2b085b0a3a37cf87e4a9ccf6b2de50a3fc236de3 (patch) | |
tree | a01a7ee6db6d2b30f37976d485b41c36f40c5f44 | |
parent | da2191e01ff5beb50cb1ce193778b4fe59225a2d (diff) | |
download | farstream-2b085b0a3a37cf87e4a9ccf6b2de50a3fc236de3.tar.gz |
rtp: Put channels as encoding-params as expected
-rw-r--r-- | gst/fsrtpconference/fs-rtp-conference.c | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/gst/fsrtpconference/fs-rtp-conference.c b/gst/fsrtpconference/fs-rtp-conference.c index e3303e92..f26d3929 100644 --- a/gst/fsrtpconference/fs-rtp-conference.c +++ b/gst/fsrtpconference/fs-rtp-conference.c @@ -773,8 +773,15 @@ fs_codec_to_gst_caps (const FsCodec *codec) gst_structure_set (structure, "payload", G_TYPE_INT, codec->id, NULL); if (codec->channels) - gst_structure_set (structure, "channels", G_TYPE_INT, codec->channels, - NULL); + { + gchar tmp[11]; + + snprintf (tmp, 11, "%u", codec->channels); + gst_structure_set (structure, + "channels", G_TYPE_INT, codec->channels, + "encoding-params", G_TYPE_STRING, tmp, + NULL); + } for (item = codec->optional_params; item; |