Gst.py: raise an error if we can't unmap the memory

This commit is contained in:
Jose Quaresma 2020-06-14 16:54:28 +01:00
parent bea8e5c6ca
commit b9d26cbf46

View file

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