[farsight2/master] Test correctly if no codec could be negotiated
Olivier Crête
olivier.crete at collabora.co.uk
Tue Dec 23 15:21:13 PST 2008
---
gst/fsrtpconference/fs-rtp-codec-negotiation.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/gst/fsrtpconference/fs-rtp-codec-negotiation.c b/gst/fsrtpconference/fs-rtp-codec-negotiation.c
index 2d89044..bfdf996 100644
--- a/gst/fsrtpconference/fs-rtp-codec-negotiation.c
+++ b/gst/fsrtpconference/fs-rtp-codec-negotiation.c
@@ -576,7 +576,8 @@ negotiate_codecs (const GList *remote_codecs,
}
/* If no intersection was found, lets return NULL */
- if (g_hash_table_size (new_codec_associations) == 0) {
+ if (!new_negotiated_codecs)
+ {
g_hash_table_destroy (new_codec_associations);
return NULL;
}
--
1.5.6.5
More information about the farsight-commits
mailing list