• Antonio Ospite's avatar
    overrides: add a set_caps() method to the Pad override · 1cece5bd
    Antonio Ospite authored
    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 #19
    1cece5bd
Name
Last commit
Last update
common @ 59cb6781 Loading commit data...
examples Loading commit data...
gi Loading commit data...
hooks Loading commit data...
old_examples Loading commit data...
plugin Loading commit data...
testsuite Loading commit data...
.gitignore Loading commit data...
.gitlab-ci.yml Loading commit data...
.gitmodules Loading commit data...
AUTHORS Loading commit data...
COPYING Loading commit data...
ChangeLog Loading commit data...
Makefile.am Loading commit data...
NEWS Loading commit data...
README Loading commit data...
RELEASE Loading commit data...
TODO Loading commit data...
acinclude.m4 Loading commit data...
autogen.sh Loading commit data...
configure.ac Loading commit data...
env Loading commit data...
gst-python.doap Loading commit data...
meson.build Loading commit data...
meson_options.txt Loading commit data...
pygst.py.in Loading commit data...