(self, caps)
| 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) |