Commit 8cc4bda4 authored by Thibault Saunier's avatar Thibault Saunier 🌵

overrides: Checking an empty caps should return False

parent c889037e
......@@ -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()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment