mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-28 20:51:13 +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/5462>
This commit is contained in:
parent
15248d8b84
commit
7b564619cf
1 changed files with 5 additions and 1 deletions
|
@ -1210,6 +1210,9 @@ gst_d3d11_window_win32_show (GstD3D11Window * window)
|
||||||
PostMessageA (self->internal_hwnd, WM_GST_D3D11_SHOW_WINDOW, 0, 0);
|
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;
|
self->visible = TRUE;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -1277,6 +1280,7 @@ gst_d3d11_window_win32_change_fullscreen_mode (GstD3D11Window * window)
|
||||||
|
|
||||||
if (self->internal_hwnd) {
|
if (self->internal_hwnd) {
|
||||||
g_atomic_int_add (&self->pending_fullscreen_count, 1);
|
g_atomic_int_add (&self->pending_fullscreen_count, 1);
|
||||||
|
if (self->visible)
|
||||||
PostMessageA (self->internal_hwnd, WM_GST_D3D11_FULLSCREEN, 0, 0);
|
PostMessageA (self->internal_hwnd, WM_GST_D3D11_FULLSCREEN, 0, 0);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue