[farsight2/master] Don't resend the same lists multiple times
Olivier Crête
olivier.crete at collabora.co.uk
Tue Dec 23 15:23:06 PST 2008
---
tests/gui/fs2-gui.py | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
diff --git a/tests/gui/fs2-gui.py b/tests/gui/fs2-gui.py
index fe9f8bb..4e48d87 100644
--- a/tests/gui/fs2-gui.py
+++ b/tests/gui/fs2-gui.py
@@ -415,6 +415,7 @@ class FsUIStream:
self.fsstream.connect("src-pad-added", self.__src_pad_added)
self.newcodecs = []
self.send_codecs = False
+ self.last_codecs = []
def local_candidates_prepared(self):
"Callback from FsStream"
@@ -468,6 +469,9 @@ class FsUIStream:
self.send_codecs = False
codecs = self.session.fssession.get_property("negotiated-codecs")
assert(codecs is not None and len(codecs) > 0)
+ if (farsight.fs_codec_list_are_equal(codecs, self.last_codecs)):
+ return
+ self.last_codecs = codecs
for codec in codecs:
print "sending local codec: " + codec.to_string()
self.connect.send_codec(self.participant.id, self.id, codec)
--
1.5.6.5
More information about the farsight-commits
mailing list