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

Method __init__

old_examples/sinkelement.py:32–41  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

30 gst.caps_new_any())
31
32 def __init__(self):
33 gst.Element.__init__(self)
34 gst.info('creating sinkpad')
35 self.sinkpad = gst.Pad(self._sinkpadtemplate, "sink")
36 gst.info('adding sinkpad to self')
37 self.add_pad(self.sinkpad)
38
39 gst.info('setting chain/event functions')
40 self.sinkpad.set_chain_function(self.chainfunc)
41 self.sinkpad.set_event_function(self.eventfunc)
42
43 def chainfunc(self, pad, buffer):
44 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