d3d11videosink: video is frozen in full screen
Describe your issue
d3d11videosink: video is frozen in full screen. Warning messages are reported:
d3d11window gstd3d11window_win32.cpp:1092:gst_d3d11_window_win32_present:<d3d11windowwin32-0> Direct3D cannot present texture, hr: 0x887a0001
d3d11window gstd3d11window_win32.cpp:1090:gst_d3d11_window_win32_present: D3D11 call failed: 0x887a0001, L'application a effectué un appel qui est non valide. Les paramètres de l'appel ou l'état d'un objet étaient incorrects.
Activez la couche de débogage D3D afin d'afficher les détails via des messages de débogage.
Expected Behavior
The video stream plays correctly in full screen
Observed Behavior
In full screen, the video is frozen. When leaving the full screen, the video stream plays correctly again. When going back to full screen, the video stream is frozen.
Setup
- Operating System: Windows 10
- Device: Computer
- GStreamer Version: not working since commit 5eeec165 - was working on commit 46a33945
-
Command line:
gst-launch-1.0.exe --gst-debug=2 videotestsrc pattern=ball ! "video/x-raw, width=1920, height=1080" ! d3d11videosink fullscreen=true fullscreen-toggle-mode=GST_D3D11_WINDOW_FULLSCREEN_TOGGLE_MODE_ALT_ENTER+GST_D3D11_WINDOW_FULLSCREEN_TOGGLE_MODE_PROPERTY
Steps to reproduce the bug
- open terminal
- type
gst-launch-1.0.exe --gst-debug=2 videotestsrc pattern=ball ! "video/x-raw, width=1920, height=1080" ! d3d11videosink fullscreen=true fullscreen-toggle-mode=GST_D3D11_WINDOW_FULLSCREEN_TOGGLE_MODE_ALT_ENTER+GST_D3D11_WINDOW_FULLSCREEN_TOGGLE_MODE_PROPERTY
How reproducible is the bug?
Video is always frozen, 100% reproducible
Screenshots if relevant
Solutions you have tried
Reverting to commit 46a33945 works. Issue is probably somewhere in this commit: 5eeec165
Edited by Corentin Damman