[gst-cvs] gst-python: examples: Port switch.py to input-selector

Edward Hervey bilboed at kemper.freedesktop.org
Thu May 7 05:29:32 PDT 2009


Module: gst-python
Branch: master
Commit: 113959d55a9403716892e843b4c646d34c8a6f90
URL:    http://cgit.freedesktop.org/gstreamer/gst-python/commit/?id=113959d55a9403716892e843b4c646d34c8a6f90

Author: Jan Schmidt <thaytan at noraisin.net>
Date:   Wed May  6 23:38:54 2009 +0100

examples: Port switch.py to input-selector

The switch element hasn't existed for a while now - use the
replacement element input-selector instead.

Partially (and finally) fixes #581737

---

 examples/switch.py |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/examples/switch.py b/examples/switch.py
index 3428571..c47b71a 100755
--- a/examples/switch.py
+++ b/examples/switch.py
@@ -22,7 +22,7 @@ class SwitchTest:
         self.playing = False
         pipestr = ('videotestsrc pattern=0 ! queue ! s.sink0'
                    ' videotestsrc pattern=1 ! queue ! s.sink1'
-                   ' switch name=s ! autovideosink')
+                   ' input-selector name=s ! autovideosink')
         self.pipeline = gst.parse_launch(pipestr)
         self.videowidget = videowidget
 
@@ -86,7 +86,7 @@ class SwitchTest:
 
         gst.warning('switching from %r to %r'
                     % (switch.get_property('active-pad'), padname))
-        switch.emit('switch', padname, stop_time, start_time)
+        switch.emit('switch', newpad, stop_time, start_time)
 
 class VideoWidget(gtk.DrawingArea):
     def __init__(self):





More information about the Gstreamer-commits mailing list