mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-04-02 14:20:06 +00:00
d3d11colorconvert: Set TRANSFER_NEED_DOWNLOAD flag to output memory for later cpu access
Otherwise CPU cannot access texture via gst_memory_map()
This commit is contained in:
parent
18e13404a2
commit
65cace22e2
1 changed files with 5 additions and 0 deletions
|
@ -892,6 +892,11 @@ gst_d3d11_color_convert_transform (GstBaseTransform * trans,
|
|||
(ID3D11Resource *) self->out_texture[i], 0, NULL);
|
||||
}
|
||||
gst_d3d11_device_unlock (device);
|
||||
} else {
|
||||
for (i = 0; i < gst_buffer_n_memory (outbuf); i++) {
|
||||
GstMemory *mem = gst_buffer_peek_memory (outbuf, i);
|
||||
GST_MINI_OBJECT_FLAG_SET (mem, GST_D3D11_MEMORY_TRANSFER_NEED_DOWNLOAD);
|
||||
}
|
||||
}
|
||||
|
||||
return GST_FLOW_OK;
|
||||
|
|
Loading…
Reference in a new issue