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

Method update_scale_cb

old_examples/remuxer.py:808–816  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

806 self.update_scale_cb)
807
808 def update_scale_cb(self):
809 had_duration = self.p_duration != gst.CLOCK_TIME_NONE
810 self.p_position, self.p_duration = self.player.query_position()
811 if self.p_position != gst.CLOCK_TIME_NONE:
812 value = self.p_position * 100.0 / self.p_duration
813 self.adjustment.set_value(value)
814 if not had_duration:
815 self.cutin.set_time(0)
816 return True
817
818def main(args):
819 def usage():

Callers

nothing calls this directly

Calls 2

set_timeMethod · 0.80
query_positionMethod · 0.45

Tested by

no test coverage detected