[Telepathy-commits] [mingle/master] Add a tee in the video source

Sjoerd Simons sjoerd at luon.net
Tue Dec 2 07:53:56 PST 2008


---
 fs2.py |    9 ++++++++-
 1 files changed, 8 insertions(+), 1 deletions(-)

diff --git a/fs2.py b/fs2.py
index ce57a03..e25fe46 100644
--- a/fs2.py
+++ b/fs2.py
@@ -99,10 +99,16 @@ class VideoSource(gst.Bin):
           gst.Caps("video/x-raw-yuv,width=320,height=240," + \
             "framerate=(fraction)15/1"))
 
+
         self.add(filter)
         rate.link(filter)
 
-        pad = gst.GhostPad("src", filter.get_pad("src"))
+        tee = gst.element_factory_make("tee")
+        self.tee = tee
+        self.add(tee)
+        filter.link(tee)
+
+        pad = gst.GhostPad("src", tee.get_pad("src%d"))
         self.add_pad(pad)
 
 class AudioSource(gst.Bin):
@@ -214,6 +220,7 @@ class ConferenceSession:
         spad.link(pad)
 
         source.set_state(gst.STATE_PLAYING)
+        self.source = source
 
     def get_codecs(self):
         if self.fssession.get_property("codecs-ready"):
-- 
1.5.6.5




More information about the Telepathy-commits mailing list