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 gstreamer/gst-python#19
Status | Job ID | Name | Coverage | ||||||
---|---|---|---|---|---|---|---|---|---|
Preparation | |||||||||
passed |
#76594
|
gst indent |
00:00:18
|
|
|||||
passed |
#76593
|
manifest |
00:00:35
|
|
|||||
Build | |||||||||
passed |
#76595
|
build fedora x86_64 |
00:03:44
|
|
|||||
Test | |||||||||
passed |
#76596
|
check fedora |
00:17:07
|
|
|||||
Full Builds | |||||||||
passed |
#76597
|
build android arm64 api28 |
00:03:13
|
|
|||||
passed |
#76599
|
build cerbero cross win32 |
00:42:28
|
|
|||||
passed |
#76600
|
build cerbero cross win64 |
00:44:38
|
|
|||||
passed |
#76598
|
build cerbero fedora x86_64 |
00:47:39
|
|
|||||