[vlc-devel] [PATCH] win32: assert when VLC_CANCEL_ADDR_SET has another address already set

Steve Lhomme robux4 at videolabs.io
Thu Jun 16 16:05:11 CEST 2016


in par with the assert in VLC_CANCEL_ADDR_CLEAR but we can tell who's guilty
---
 src/win32/thread.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/win32/thread.c b/src/win32/thread.c
index 963a8d7..f23be65 100644
--- a/src/win32/thread.c
+++ b/src/win32/thread.c
@@ -677,6 +677,7 @@ void vlc_control_cancel (int cmd, ...)
             void *addr = va_arg(ap, void *);
 
             EnterCriticalSection(&th->wait.lock);
+            assert(th->wait.addr == NULL);
             th->wait.addr = addr;
             LeaveCriticalSection(&th->wait.lock);
             break;
-- 
2.8.2



More information about the vlc-devel mailing list