[farsight2/master] Port python gui to set_remote_candidates()

Olivier Crête olivier.crete at collabora.co.uk
Tue Dec 23 15:23:40 PST 2008


---
 tests/gui/fs2-gui.py |    6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)

diff --git a/tests/gui/fs2-gui.py b/tests/gui/fs2-gui.py
index 128cadc..5bdd81a 100644
--- a/tests/gui/fs2-gui.py
+++ b/tests/gui/fs2-gui.py
@@ -451,6 +451,7 @@ class FsUIStream:
         self.newcodecs = []
         self.send_codecs = False
         self.last_codecs = []
+        self.candidates = []
 
     def local_candidates_prepared(self):
         "Callback from FsStream"
@@ -467,10 +468,11 @@ class FsUIStream:
 
     def candidate(self, candidate):
         "Callback for the network object."
-        self.fsstream.add_remote_candidate(candidate)
+        self.candidates.append(candidate)
     def candidates_done(self):
         "Callback for the network object."
-        self.fsstream.remote_candidates_added()
+        self.fsstream.set_remote_candidates(self.candidates)
+        self.candidates = []
     def codec(self, codec):
         "Callback for the network object. Stores the codec"
         
-- 
1.5.6.5




More information about the farsight-commits mailing list