[farsight2/master] Add the possibility to change the codec on the fly in the UI

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


---
 tests/gui/fs2-gui.py |   14 ++++++++++++++
 1 files changed, 14 insertions(+), 0 deletions(-)

diff --git a/tests/gui/fs2-gui.py b/tests/gui/fs2-gui.py
index 04de2ef..70966ae 100644
--- a/tests/gui/fs2-gui.py
+++ b/tests/gui/fs2-gui.py
@@ -705,6 +705,20 @@ class FsMainUI:
     def reset_video_codecs(self):
         self.reset_codecs(self.video_combobox,
                           self.pipeline.videosession.fssession)
+
+    def combobox_changed_cb(self, combobox, fssession):
+        liststore = combobox.get_model()
+        iter = combobox.get_active_iter()
+        if iter:
+            codec = liststore.get_value(iter, 1)
+            fssession.set_send_codec(codec)
+
+    def audio_combobox_changed_cb(self, combobox):
+        self.combobox_changed_cb(combobox, self.pipeline.audiosession.fssession)
+    
+    def video_combobox_changed_cb(self, combobox):
+        self.combobox_changed_cb(combobox, self.pipeline.videosession.fssession)
+        
         
     def exposed(self, widget, *args):
         "Callback from the exposed event of the widget to make the preview sink"
-- 
1.5.6.5




More information about the farsight-commits mailing list