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

Method __init__

old_examples/sinkelement-registry.py:36–45  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

34 gst.caps_new_any())
35
36 def __init__(self):
37 gst.Element.__init__(self)
38 gst.info('creating sinkpad')
39 self.sinkpad = gst.Pad(self._sinkpadtemplate, "sink")
40 gst.info('adding sinkpad to self')
41 self.add_pad(self.sinkpad)
42
43 gst.info('setting chain/event functions')
44 self.sinkpad.set_chain_function(self.chainfunc)
45 self.sinkpad.set_event_function(self.eventfunc)
46
47 def chainfunc(self, pad, buffer):
48 self.info("%s timestamp(buffer):%d" % (pad, buffer.timestamp))

Callers

nothing calls this directly

Calls 2

set_chain_functionMethod · 0.80
set_event_functionMethod · 0.80

Tested by

no test coverage detected