mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-29 21:21:12 +00:00
d3d11videosink: Fix rendering with initial fullscreen state
Change fullscreen mode once the swapchain is fully configured Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/5466>
This commit is contained in:
parent
07a2f7ebcc
commit
4b932ee989
1 changed files with 5 additions and 1 deletions
|
@ -1222,6 +1222,9 @@ gst_d3d11_window_win32_show (GstD3D11Window * window)
|
|||
PostMessageA (self->internal_hwnd, WM_GST_D3D11_SHOW_WINDOW, 0, 0);
|
||||
}
|
||||
|
||||
if (g_atomic_int_get (&self->pending_fullscreen_count) > 0)
|
||||
PostMessageA (self->internal_hwnd, WM_GST_D3D11_FULLSCREEN, 0, 0);
|
||||
|
||||
self->visible = TRUE;
|
||||
}
|
||||
}
|
||||
|
@ -1289,7 +1292,8 @@ gst_d3d11_window_win32_change_fullscreen_mode (GstD3D11Window * window)
|
|||
|
||||
if (self->internal_hwnd) {
|
||||
g_atomic_int_add (&self->pending_fullscreen_count, 1);
|
||||
PostMessageA (self->internal_hwnd, WM_GST_D3D11_FULLSCREEN, 0, 0);
|
||||
if (self->visible)
|
||||
PostMessageA (self->internal_hwnd, WM_GST_D3D11_FULLSCREEN, 0, 0);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue