gstreamer/gi/overrides
Antonio Ospite 1cece5bde5 overrides: add a set_caps() method to the Pad override
The C API provides the gst_pad_set_caps() helper which makes it easier
to set caps on pads (see gst/gstcompat.h in gstreamer core).

Add such handy helper to the python bindings too.

The implementation follows as close as possible the one in gstcompat.h
with two changes:
  1. the type check on the pad has been removed because self is
     guaranteed to be a Gst.Pad in python.
  2. the null check on the caps has been extended to be a type check.

Fixes https://gitlab.freedesktop.org/gstreamer/gst-python/issues/19
2019-01-09 12:32:37 +01:00
..
Gst.py overrides: add a set_caps() method to the Pad override 2019-01-09 12:32:37 +01:00
gstmodule.c gstmodule: fix warning when building against python2 2018-05-14 07:51:43 -04:00
GstPbutils.py overrides: use get_introspection_module 2018-04-25 15:10:28 -03:00
Makefile.am automake: remove __init__.py's 2018-10-28 17:53:08 +01:00
meson.build Tests: refactor testing approach 2018-10-31 00:41:31 +01:00