[farsight2/master] Keep optional params that are config params in last step of negotiation
Olivier Crête
olivier.crete at collabora.co.uk
Tue Dec 23 15:22:56 PST 2008
---
gst/fsrtpconference/fs-rtp-codec-negotiation.c | 6 ++++--
1 files changed, 4 insertions(+), 2 deletions(-)
diff --git a/gst/fsrtpconference/fs-rtp-codec-negotiation.c b/gst/fsrtpconference/fs-rtp-codec-negotiation.c
index 2ffa27d..6fb9fed 100644
--- a/gst/fsrtpconference/fs-rtp-codec-negotiation.c
+++ b/gst/fsrtpconference/fs-rtp-codec-negotiation.c
@@ -703,12 +703,14 @@ finish_codec_negotiation (
{
GList *item2 = NULL;
- for (item2 = oldca->codec->config_params;
+ for (item2 = oldca->codec->optional_params;
item2;
item2 = g_list_next (item2))
{
FsCodecParameter *param = item2->data;
- fs_codec_add_config_parameter (newca->codec, param->name, param->value);
+ if (codec_has_config_data_named (newca->codec, param->name))
+ fs_codec_add_optional_parameter (newca->codec, param->name,
+ param->value);
}
}
}
--
1.5.6.5
More information about the farsight-commits
mailing list