mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-19 08:11:16 +00:00
Gst.py: raise an error if we can't unmap the memory
This commit is contained in:
parent
bea8e5c6ca
commit
b9d26cbf46
1 changed files with 2 additions and 1 deletions
|
@ -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…
Reference in a new issue