[farsight2/master] Emit codecs notifications if only the recv-only state of a codec has changed
Olivier Crête
olivier.crete at collabora.co.uk
Sun Mar 15 11:53:58 PDT 2009
---
gst/fsrtpconference/fs-rtp-codec-negotiation.c | 6 ++++++
1 files changed, 6 insertions(+), 0 deletions(-)
diff --git a/gst/fsrtpconference/fs-rtp-codec-negotiation.c b/gst/fsrtpconference/fs-rtp-codec-negotiation.c
index 5b3183d..da83374 100644
--- a/gst/fsrtpconference/fs-rtp-codec-negotiation.c
+++ b/gst/fsrtpconference/fs-rtp-codec-negotiation.c
@@ -1195,6 +1195,12 @@ codec_associations_list_are_equal (GList *list1, GList *list2)
if (list1 == NULL || list2 == NULL)
break;
+ /* We must emit the notification if the recv-only status
+ * of a codec has changed
+ */
+ if (ca1->recv_only != ca2->recv_only)
+ return FALSE;
+
if (!fs_codec_are_equal (ca1->codec, ca2->codec))
return FALSE;
}
--
1.5.6.5
More information about the farsight-commits
mailing list