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

Method get_sync_points

old_examples/synchronizer.py:217–227  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

215 hbox.pack_start(v)
216
217 def get_sync_points(self):
218 def get_value(row, i):
219 return self.model.get_value(row.iter, i)
220 pairs = [(get_value(row, 1), get_value(row, 0)) for row in self.model]
221 pairs.sort()
222 ret = []
223 maxdiff = 0
224 for pair in pairs:
225 maxdiff = max(maxdiff, abs(pair[1] - pair[0]))
226 ret.extend(pair)
227 return ret, maxdiff
228
229 def changed(self):
230 print 'Sync times now:'

Callers 1

do_remuxMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected