[Telepathy-commits] [mingle/master] Add videorate element
Sjoerd Simons
sjoerd at luon.net
Sat Nov 8 14:05:01 PST 2008
---
fs2.py | 6 +++++-
1 files changed, 5 insertions(+), 1 deletions(-)
diff --git a/fs2.py b/fs2.py
index c6f2ee3..5fe08be 100644
--- a/fs2.py
+++ b/fs2.py
@@ -90,13 +90,17 @@ class VideoSource(gst.Bin):
self.add(source)
+ rate = gst.element_factory_make("videorate")
+ self.add(rate)
+ source.link(rate)
+
filter = gst.element_factory_make("capsfilter")
filter.set_property("caps",
gst.Caps("video/x-raw-yuv,width=320,height=240," + \
"framerate=(fraction)10/1"))
self.add(filter)
- source.link(filter)
+ rate.link(filter)
pad = gst.GhostPad("src", filter.get_pad("src"))
self.add_pad(pad)
--
1.5.6.5
More information about the Telepathy-commits
mailing list