MCPcopy Create free account
hub / github.com/GStreamer/gst-python / switch

Method switch

old_examples/switch.py:75–89  ·  view source on GitHub ↗
(self, padname)

Source from the content-addressed store, hash-verified

73 return self.playing
74
75 def switch(self, padname):
76 switch = self.pipeline.get_by_name('s')
77 stop_time = switch.emit('block')
78 newpad = switch.get_static_pad(padname)
79 start_time = newpad.get_property('running-time')
80
81 gst.warning('stop time = %d' % (stop_time,))
82 gst.warning('stop time = %s' % (gst.TIME_ARGS(stop_time),))
83
84 gst.warning('start time = %d' % (start_time,))
85 gst.warning('start time = %s' % (gst.TIME_ARGS(start_time),))
86
87 gst.warning('switching from %r to %r'
88 % (switch.get_property('active-pad'), padname))
89 switch.emit('switch', newpad, stop_time, start_time)
90
91class VideoWidget(gtk.DrawingArea):
92 def __init__(self):

Callers 1

combobox_changedMethod · 0.80

Calls 1

get_propertyMethod · 0.80

Tested by

no test coverage detected