d3d11compositor: Fix caps update handling
authorSeungha Yang <seungha@centricular.com>
Wed, 26 May 2021 07:37:06 +0000 (16:37 +0900)
committerSeungha Yang <seungha@centricular.com>
Wed, 26 May 2021 07:42:39 +0000 (16:42 +0900)
commitda33921f8d6d746d638c011065231419da221f71
treed500d6d150388ea9eb22d09f005d3d6460a5adcc
parent9514340d2db0432e71eef74578057ed21e3af8dd
d3d11compositor: Fix caps update handling

New caps is applied only when previous buffer is consumed if any.
So, the lastest given caps might not be corresponding to the current buffer
to be handled.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-bad/-/merge_requests/2284>
sys/d3d11/gstd3d11compositor.cpp