mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-02 21:48:55 +00:00
d3dvideosink: fix deadlock when the device is lost
This commit is contained in:
parent
ade676879a
commit
171321c5eb
1 changed files with 0 additions and 2 deletions
|
@ -662,11 +662,9 @@ SharedHiddenWndProc (HWND hWnd, UINT message, WPARAM wParam, LPARAM lParam)
|
||||||
{
|
{
|
||||||
/* Did we receive a message to check if the device is available again? */
|
/* Did we receive a message to check if the device is available again? */
|
||||||
if (wParam == IDT_DEVICELOST) {
|
if (wParam == IDT_DEVICELOST) {
|
||||||
GST_D3DVIDEOSINK_SWAP_CHAIN_LOCK (sink);
|
|
||||||
/* This will synchronously call SharedHiddenWndProc() because this thread is the one that created the window. */
|
/* This will synchronously call SharedHiddenWndProc() because this thread is the one that created the window. */
|
||||||
SendMessage (hWnd, WM_DIRECTX_D3D_DEVICELOST, 0,
|
SendMessage (hWnd, WM_DIRECTX_D3D_DEVICELOST, 0,
|
||||||
(LPARAM) shared.device_lost_sink);
|
(LPARAM) shared.device_lost_sink);
|
||||||
GST_D3DVIDEOSINK_SWAP_CHAIN_UNLOCK (sink);
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
|
Loading…
Reference in a new issue