mfvideobuffer: Don't error for unexpected Unlock/Unlock2D call
authorSeungha Yang <seungha@centricular.com>
Tue, 6 Jul 2021 08:14:21 +0000 (17:14 +0900)
committerGStreamer Marge Bot <gitlab-merge-bot@gstreamer-foundation.org>
Wed, 7 Jul 2021 16:07:28 +0000 (16:07 +0000)
commit2cd83fb4ef07eceb26b4e69cb84bf8dfc5809a2d
tree72b4a505f29e2f052d051c4418ccded168677ad3
parenta8c2b658807367e52ddbb996e827bd90b642a304
mfvideobuffer: Don't error for unexpected Unlock/Unlock2D call

Some GPU vendor's MFT implementation calls IMFMediaBuffer::Unlock()
without previous IMFMediaBuffer::Lock() call. Which is obviously
driver bug but we can ignore the Unlock call.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-bad/-/merge_requests/2381>
sys/mediafoundation/gstmfvideobuffer.cpp
sys/mediafoundation/gstmfvideobuffer.h