From b9d26cbf46fb618e08116c0d90d29f0f660b76d7 Mon Sep 17 00:00:00 2001 From: Jose Quaresma Date: Sun, 14 Jun 2020 16:54:28 +0100 Subject: [PATCH] Gst.py: raise an error if we can't unmap the memory --- gi/overrides/Gst.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/gi/overrides/Gst.py b/gi/overrides/Gst.py index e7eeb29cc9..edf347b98f 100644 --- a/gi/overrides/Gst.py +++ b/gi/overrides/Gst.py @@ -649,7 +649,8 @@ class Memory(Gst.Memory): def unmap(self, mapinfo): mapinfo.__parent__ = None - return _gi_gst.memory_override_unmap(self, mapinfo) + if _gi_gst.memory_override_unmap(self, mapinfo) is not True: + raise MapError('UnmappingError','Memory unmapping was not successfull') Memory = override(Memory) __all__.append('Memory')