overrides: Checking an empty caps should return False

This commit is contained in:
Thibault Saunier 2014-03-15 15:45:43 +01:00
parent c889037e40
commit 8cc4bda46a

View file

@ -63,6 +63,9 @@ __all__.append('Bin')
class Caps(Gst.Caps):
def __nonzero__(self):
return not self.is_empty()
def __new__(cls, *kwargs):
if not kwargs:
return Caps.new_empty()