mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-28 03:00:35 +00:00
overrides: Checking an empty caps should return False
This commit is contained in:
parent
c889037e40
commit
8cc4bda46a
1 changed files with 3 additions and 0 deletions
|
@ -63,6 +63,9 @@ __all__.append('Bin')
|
||||||
|
|
||||||
class Caps(Gst.Caps):
|
class Caps(Gst.Caps):
|
||||||
|
|
||||||
|
def __nonzero__(self):
|
||||||
|
return not self.is_empty()
|
||||||
|
|
||||||
def __new__(cls, *kwargs):
|
def __new__(cls, *kwargs):
|
||||||
if not kwargs:
|
if not kwargs:
|
||||||
return Caps.new_empty()
|
return Caps.new_empty()
|
||||||
|
|
Loading…
Reference in a new issue