[farsight2/master] Get the sinks by interface instead of by name in gui
Olivier Crête
olivier.crete at collabora.co.uk
Tue Dec 23 15:24:09 PST 2008
---
tests/gui/fs2-gui.py | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/tests/gui/fs2-gui.py b/tests/gui/fs2-gui.py
index 9588b3c..731445c 100644
--- a/tests/gui/fs2-gui.py
+++ b/tests/gui/fs2-gui.py
@@ -583,7 +583,7 @@ class FsUIParticipant:
if not VIDEO:
return
try:
- self.videosink.get_by_name("uservideosink").expose()
+ self.videosink.get_by_interface(gst.interfaces.XOverlay).expose()
except AttributeError:
try:
self.outcv.acquire()
@@ -765,7 +765,7 @@ class FsMainUI:
if not VIDEO:
return
try:
- self.preview.get_by_name("previewvideosink").expose()
+ self.preview.get_by_interface(gst.interfaces.XOverlay).expose()
except AttributeError:
self.preview = self.pipeline.make_video_preview(widget.window.xid,
self.newsize)
--
1.5.6.5
More information about the farsight-commits
mailing list