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

Method __init__

old_examples/pyidentity.py:22–38  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

20 gst.caps_new_any())
21
22 def __init__(self):
23 gst.Element.__init__(self)
24
25 self.sinkpad = gst.Pad(self._sinkpadtemplate, "sink")
26 self.sinkpad.set_chain_function(self.chainfunc)
27 self.sinkpad.set_event_function(self.eventfunc)
28 self.sinkpad.set_getcaps_function(gst.Pad.proxy_getcaps)
29 self.sinkpad.set_setcaps_function(gst.Pad.proxy_setcaps)
30 self.add_pad (self.sinkpad)
31
32 self.srcpad = gst.Pad(self._srcpadtemplate, "src")
33
34 self.srcpad.set_event_function(self.srceventfunc)
35 self.srcpad.set_query_function(self.srcqueryfunc)
36 self.srcpad.set_getcaps_function(gst.Pad.proxy_getcaps)
37 self.srcpad.set_setcaps_function(gst.Pad.proxy_setcaps)
38 self.add_pad (self.srcpad)
39
40 def chainfunc(self, pad, buffer):
41 gst.log ("Passing buffer with ts %d" % (buffer.timestamp))

Callers

nothing calls this directly

Calls 3

set_chain_functionMethod · 0.80
set_event_functionMethod · 0.80
set_query_functionMethod · 0.80

Tested by

no test coverage detected