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

Method start

old_examples/remuxer.py:478–498  ·  view source on GitHub ↗
(self, main_window)

Source from the content-addressed store, hash-verified

476 self.emit('done', response)
477
478 def start(self, main_window):
479 self.window = main_window
480 self.touri = self.do_get_touri()
481 if not self.touri:
482 return False
483 self.do_setup_pipeline()
484 bus = self.get_bus()
485 bus.add_signal_watch()
486 bus.connect('message', self._bus_watch)
487 if self.window:
488 # can be None if we are debugging...
489 self.window.set_sensitive(False)
490 fromname = self.fromuri.split('/')[-1]
491 toname = self.touri.split('/')[-1]
492 self.pdialog = RemuxProgressDialog(main_window, self.start_time,
493 self.stop_time, fromname, toname)
494 self.pdialog.show()
495 self.pdialog.connect('response', lambda w, r: self.response(r))
496
497 self.set_state(gst.STATE_PAUSED)
498 return True
499
500 def run(self, main_window):
501 if self.start(main_window):

Callers 2

runMethod · 0.95
record_sound.pyFile · 0.45

Calls 4

do_get_touriMethod · 0.95
do_setup_pipelineMethod · 0.95
responseMethod · 0.95
RemuxProgressDialogClass · 0.70

Tested by

no test coverage detected