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

Method set_time

old_examples/remuxer.py:213–224  ·  view source on GitHub ↗
(self, time)

Source from the content-addressed store, hash-verified

211 return time
212
213 def set_time(self, time):
214 if time == gst.CLOCK_TIME_NONE:
215 print "Can't set '%s' (invalid time)" % self.label
216 return
217 self.freeze_notify()
218 for w, multiplier in ((self.minutes, gst.SECOND*60),
219 (self.seconds, gst.SECOND),
220 (self.milliseconds, gst.MSECOND)):
221 val = time // multiplier
222 w.set_text(str(val))
223 time -= val * multiplier
224 self.thaw_notify()
225
226 def set_now(self):
227 time, dur = self.pwindow.player.query_position()

Callers 4

set_nowMethod · 0.95
check_cutoutMethod · 0.80
check_cutinMethod · 0.80
update_scale_cbMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected