(self)
| 788 | self.update_scale_cb) |
| 789 | |
| 790 | def update_scale_cb(self): |
| 791 | had_duration = self.p_duration != gst.CLOCK_TIME_NONE |
| 792 | self.p_position, self.p_duration = self.player.query_position() |
| 793 | if self.p_position != gst.CLOCK_TIME_NONE: |
| 794 | value = self.p_position * 100.0 / self.p_duration |
| 795 | self.adjustment.set_value(value) |
| 796 | return True |
| 797 | |
| 798 | def main(args): |
| 799 | def usage(): |
nothing calls this directly
no test coverage detected