d3d11decoder: Work around Intel DXVA driver crash
authorSeungha Yang <seungha@centricular.com>
Fri, 27 May 2022 12:13:43 +0000 (21:13 +0900)
committerSeungha Yang <seungha@centricular.com>
Fri, 27 May 2022 15:13:15 +0000 (15:13 +0000)
commitfe64295841f53894c7e21ea6f1101ce8e650bce8
treeb6bd508dacf5b8432e50374780988b13b2163c80
parentea990ff81743108c473a78963372ab8062ace6b8
d3d11decoder: Work around Intel DXVA driver crash

Intel DXVA driver crashes sometimes (from GPU thread) if
ID3D11VideoDecoder is released while there are outstanding view objects.
To make sure the object life cycle, holds an ID3D11VideoDecoder refcount
in GstD3D11Memory object.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/2504>
subprojects/gst-plugins-bad/gst-libs/gst/d3d11/gstd3d11memory.cpp
subprojects/gst-plugins-bad/gst-libs/gst/d3d11/gstd3d11memory.h
subprojects/gst-plugins-bad/sys/d3d11/gstd3d11decoder.cpp