glmemory: unset the opposite corresponding transfer flags when mapped with write
fixes consistency with consecutive gst_memory_map()'s with flags & GST_MAP_WRITE
This commit is contained in:
parent
d4ed76e4da
commit
7b0a30343a
@ -683,8 +683,10 @@ _gl_mem_unmap (GstGLMemory * gl_mem)
|
||||
if ((gl_mem->map_flags & GST_MAP_WRITE) == GST_MAP_WRITE) {
|
||||
if ((gl_mem->map_flags & GST_MAP_GL) == GST_MAP_GL) {
|
||||
GST_GL_MEMORY_FLAG_SET (gl_mem, GST_GL_MEMORY_FLAG_NEED_DOWNLOAD);
|
||||
GST_GL_MEMORY_FLAG_UNSET (gl_mem, GST_GL_MEMORY_FLAG_NEED_UPLOAD);
|
||||
} else {
|
||||
GST_GL_MEMORY_FLAG_SET (gl_mem, GST_GL_MEMORY_FLAG_NEED_UPLOAD);
|
||||
GST_GL_MEMORY_FLAG_UNSET (gl_mem, GST_GL_MEMORY_FLAG_NEED_DOWNLOAD);
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user