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

Method set_caps

gi/overrides/Gst.py:172–186  ·  view source on GitHub ↗
(self, caps)

Source from the content-addressed store, hash-verified

170 return Gst.Pad.query_caps(self, filter)
171
172 def set_caps(self, caps):
173 if not isinstance(caps, Gst.Caps):
174 raise TypeError("%s is not a Gst.Caps." % (type(caps)))
175
176 if not caps.is_fixed():
177 return False
178
179 event = Gst.Event.new_caps(caps)
180
181 if self.direction == Gst.PadDirection.SRC:
182 res = self.push_event(event)
183 else:
184 res = self.send_event(event)
185
186 return res
187
188 def link(self, pad):
189 ret = Gst.Pad.link(self, pad)

Callers 7

setUpMethod · 0.80
tearDownMethod · 0.80
setUpMethod · 0.80
tearDownMethod · 0.80
setUpMethod · 0.80
tearDownMethod · 0.80
testBufferCapsMethod · 0.80

Calls

no outgoing calls

Tested by 7

setUpMethod · 0.64
tearDownMethod · 0.64
setUpMethod · 0.64
tearDownMethod · 0.64
setUpMethod · 0.64
tearDownMethod · 0.64
testBufferCapsMethod · 0.64