[Telepathy-commits] [telepathy-gabble/master] Updated codecs may be a subset of local codecs.
Will Thompson
will.thompson at collabora.co.uk
Fri Mar 20 09:14:56 PDT 2009
Olivier pointed out that the codecs passed to CodecsUpdated need only be
a subset of those passed to Ready/SetLocalCodecs, because they're the
intersection of those and the remote codecs.
---
src/jingle-media-rtp.c | 8 --------
1 files changed, 0 insertions(+), 8 deletions(-)
diff --git a/src/jingle-media-rtp.c b/src/jingle-media-rtp.c
index 3faa36a..6192867 100644
--- a/src/jingle-media-rtp.c
+++ b/src/jingle-media-rtp.c
@@ -688,14 +688,6 @@ compare_codecs (GList *old,
g_assert (changed != NULL && *changed == NULL);
- if (g_list_length (new) != g_list_length (old))
- {
- g_set_error (e, TP_ERRORS, TP_ERROR_INVALID_ARGUMENT,
- "tried to change the number of codecs from %u to %u",
- g_list_length (old), g_list_length (new));
- goto out;
- }
-
for (l = new; l != NULL; l = l->next)
{
new_c = l->data;
--
1.5.6.5
More information about the telepathy-commits
mailing list