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

Method do_query

old_examples/remuxer.py:407–421  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

405
406 def _start_queries(self):
407 def do_query():
408 try:
409 # HACK: self.remuxbin.query() should do the same
410 # (requires implementing a vmethod, dunno how to do that
411 # although i think it's possible)
412 # HACK: why does self.query_position(..) not give useful
413 # answers?
414 pad = self.remuxbin.get_pad('src')
415 pos, duration = pad.query_position(gst.FORMAT_TIME)
416 if pos != gst.CLOCK_TIME_NONE:
417 self.pdialog.update_position(pos)
418 except:
419 # print 'query failed'
420 pass
421 return True
422 if self._query_id == -1:
423 self._query_id = gobject.timeout_add(100, # 10 Hz
424 do_query)

Callers 1

do_gst_base_src_queryMethod · 0.45

Calls 2

query_positionMethod · 0.45
update_positionMethod · 0.45

Tested by 1

do_gst_base_src_queryMethod · 0.36