From: Jose Quaresma Date: Sun, 14 Jun 2020 15:54:28 +0000 (+0100) Subject: Gst.py: raise an error if we can't unmap the memory X-Git-Tag: 1.19.3~485^2~14 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=b9d26cbf46fb618e08116c0d90d29f0f660b76d7;p=platform%2Fupstream%2Fgstreamer.git Gst.py: raise an error if we can't unmap the memory --- diff --git a/gi/overrides/Gst.py b/gi/overrides/Gst.py index e7eeb29..edf347b 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')