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

Method get_time

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

Source from the content-addressed store, hash-verified

197 self.pack_start(pad, True, False, 0)
198
199 def get_time(self):
200 time = 0
201 for w, multiplier in ((self.minutes, gst.SECOND*60),
202 (self.seconds, gst.SECOND),
203 (self.milliseconds, gst.MSECOND)):
204 text = w.get_text()
205 try:
206 val = int(text)
207 except ValueError:
208 val = 0
209 w.set_text(val and str(val) or '0')
210 time += val * multiplier
211 return time
212
213 def set_time(self, time):
214 if time == gst.CLOCK_TIME_NONE:

Callers 5

get_propertyMethod · 0.95
activatedMethod · 0.95
do_remuxMethod · 0.80
check_cutoutMethod · 0.80
check_cutinMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected