From f12a15a374e345dc991909cb98d25f5d5f91c0cf Mon Sep 17 00:00:00 2001 From: Thibault Saunier Date: Mon, 29 Jan 2024 16:28:28 -0300 Subject: [PATCH] python: Fix trying to call len() on an int n_tags already represents the len of the TagList Part-of: --- subprojects/gst-python/gi/overrides/Gst.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/subprojects/gst-python/gi/overrides/Gst.py b/subprojects/gst-python/gi/overrides/Gst.py index 6b02b117a9..04499bc03b 100644 --- a/subprojects/gst-python/gi/overrides/Gst.py +++ b/subprojects/gst-python/gi/overrides/Gst.py @@ -661,7 +661,7 @@ class TagList(Gst.TagList): return map(lambda k: (k, Gst.TagList.copy_value(self, k)[1]), self.keys()) def __len__(self): - return len(self.n_tags()) + return self.n_tags() def __str__(self): return self.to_string()