cudamemorycopy: Make sure writable caps before removing fields
authorSeungha Yang <seungha@centricular.com>
Mon, 27 Jun 2022 10:58:58 +0000 (19:58 +0900)
committerSeungha Yang <seungha@centricular.com>
Mon, 27 Jun 2022 11:28:31 +0000 (20:28 +0900)
commit16955ba672940b0c051483fff3ca38ed3cd2d0d4
tree0fbbff7c1e6c880130c2ac75a7184b0cf1434b44
parentc895cdbec81144084e78513cbc3463bb220575b5
cudamemorycopy: Make sure writable caps before removing fields

The caps to be modified may not be writable when D3D11/GL/NVMM
are all disabled.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/2664>
subprojects/gst-plugins-bad/sys/nvcodec/gstcudamemorycopy.c