mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-20 23:36:38 +00:00
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
1 changed files with 2 additions and 0 deletions
|
@ -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…
Reference in a new issue