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

Method run

old_examples/vumeter.py:88–103  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

86 return True
87
88 def run(self):
89 try:
90 self.set_sensitive(False)
91 s = 'alsasrc ! level message=true ! fakesink'
92 pipeline = gst.parse_launch(s)
93 self.set_sensitive(True)
94 pipeline.get_bus().add_signal_watch()
95 i = pipeline.get_bus().connect('message::element', self.on_message)
96 pipeline.set_state(gst.STATE_PLAYING)
97 gtk.Dialog.run(self)
98 pipeline.get_bus().disconnect(i)
99 pipeline.get_bus().remove_signal_watch()
100 pipeline.set_state(gst.STATE_NULL)
101 except gobject.GError, e:
102 self.set_sensitive(True)
103 self.error('Could not create pipeline', e.__str__)
104
105if __name__ == '__main__':
106 w = Window()

Callers 2

errorMethod · 0.45
vumeter.pyFile · 0.45

Calls 1

errorMethod · 0.95

Tested by

no test coverage detected