self.pipeline.set_state(Gst.State.NULL)
self.loop.quit()
- def switch(self):
+ def on_switch(self):
active_pad = self.selector.get_property("active-pad")
if active_pad.get_name() == "sink_0":
new_pad = self.selector.get_static_pad("sink_1")
def stdin_cb(source, condition):
source.readline()
- player.switch()
+ player.on_switch()
return True
GObject.io_add_watch(sys.stdin, GObject.IO_IN, stdin_cb)