diff options
author | Jan Schmidt <thaytan@noraisin.net> | 2009-05-06 23:38:54 +0100 |
---|---|---|
committer | Edward Hervey <bilboed@bilboed.com> | 2009-05-07 14:48:42 +0200 |
commit | 113959d55a9403716892e843b4c646d34c8a6f90 (patch) | |
tree | 3e3acdbe24356dbb745a9ffb19f5cec0876e1624 | |
parent | 7743f1ad1e309fc1d073f777712c98bd0392eff0 (diff) |
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
-rwxr-xr-x | 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): |