Gst.py: raise an error if we can't unmap the memory
This commit is contained in:
parent
bea8e5c6ca
commit
b9d26cbf46
@ -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')
|
||||
|
Loading…
x
Reference in New Issue
Block a user