From 3741860f4fe79687cfbe201a2335139e76eea90a Mon Sep 17 00:00:00 2001 From: Philipp Spitzer Date: Thu, 9 Jul 2020 22:16:26 +0200 Subject: [PATCH] Yes, it's as pythonic as such an non-Python object can be. --- lagarde.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/lagarde.py b/lagarde.py index 711dc1d..140ccd8 100755 --- a/lagarde.py +++ b/lagarde.py @@ -58,11 +58,8 @@ class Lagarde: return caps = pad.get_current_caps() - # assert (len(caps)) # we have a Gst.Caps object and it has no length - # s = caps[0] # also, it's not a list padsize = caps.get_size() - assert(padsize > 0) - for i in range(padsize): # pythonic?! + for i in range(padsize): s = caps.get_structure(i) # Gst.Structure name = s.get_name() if name.startswith('video'): -- 2.39.5