From 171321c5ebef7f79f41a802aacf311c2a0338cb0 Mon Sep 17 00:00:00 2001 From: Andoni Morales Alastruey Date: Tue, 8 May 2012 17:58:58 +0200 Subject: [PATCH] d3dvideosink: fix deadlock when the device is lost --- sys/d3dvideosink/d3dvideosink.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/sys/d3dvideosink/d3dvideosink.c b/sys/d3dvideosink/d3dvideosink.c index f60fd61c6f..7e76c60ce7 100644 --- a/sys/d3dvideosink/d3dvideosink.c +++ b/sys/d3dvideosink/d3dvideosink.c @@ -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? */ 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. */ SendMessage (hWnd, WM_DIRECTX_D3D_DEVICELOST, 0, (LPARAM) shared.device_lost_sink); - GST_D3DVIDEOSINK_SWAP_CHAIN_UNLOCK (sink); return 0; } break;