(self)
| 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 | |
| 818 | def main(args): |
| 819 | def usage(): |
nothing calls this directly
no test coverage detected