python: Fix trying to call len() on an int

n_tags already represents the len of the TagList

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/6012>
This commit is contained in:
Thibault Saunier 2024-01-29 16:28:28 -03:00 committed by GStreamer Marge Bot
parent 3321851786
commit f12a15a374

View file

@ -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()