Skip to content

d3d11screencapturesrc: Fix crash when d3d11 device is different from owned one

GstD3D11ScreenCapture object is pipeline-independent global object and the object can be shared by multiple src elements, in order to overcome a limitation of DXGI Desktop Duplication API. Note that the API allows only single capture session in a process for a monitor.

Therefore GstD3D11ScreenCapture object must be able to handle a case where src element holds different GstD3D11Device object. Which can happen when GstD3D11Device context is not shared by pipelines.

Fixes: #1197 (closed)

Merge request reports