d3d11screencapturesrc: Mouse cursor renders incorrectly
Describe your issue
d3d11screencapturesrc
renders the mouse cursor incorrectly. It flickers between being rendered correctly and offset up and to the left. When rendered in the wrong place it is drawn at the incorrect scale.
Expected Behavior
Mouse cursor is rendered in the correct place and scale.
Observed Behavior
Mouse cursor is rendered offset from where it should be at the wrong scale.
Setup
- Operating System: Windows 10 21H2
- Device: Computer with NVidia GeForce RTX 2160 and 2 monitors running at 2560x1600 and 3840x2160 with scaling at 100% and 150% respectively.
- GStreamer Version: 1.20.0
- Command line: gst-launch-1.0 d3d11screencapturesrc monitor-index=1 show-cursor=true ! queue ! d3d11videosink
Steps to reproduce the bug
- open terminal
- type
gst-launch-1.0 d3d11screencapturesrc monitor-index=1 show-cursor=true ! queue ! d3d11videosink
- Position the D3D11Render window on monitor one.
- Move the cursor to monitor two.
How reproducible is the bug?
Always
Screenshots if relevant
This video displays it clearly.
Solutions you have tried
Enabling Display pointer trailers in Mouse Properties works around the problem.