vlc | branch: master | Steve Lhomme <[email protected]> | Thu Jun 16 16:05:11 2016 +0200| [05bf84971604c89d0ed5c6bb089a15c4e860a0d5] | committer: Rémi Denis-Courmont
win32: assert when VLC_CANCEL_ADDR_SET has another address already set in par with the assert in VLC_CANCEL_ADDR_CLEAR but we can tell who's guilty Signed-off-by: Rémi Denis-Courmont <[email protected]> > http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=05bf84971604c89d0ed5c6bb089a15c4e860a0d5 --- src/win32/thread.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/win32/thread.c b/src/win32/thread.c index 36114fa..9eb3db7 100644 --- a/src/win32/thread.c +++ b/src/win32/thread.c @@ -670,6 +670,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; _______________________________________________ vlc-commits mailing list [email protected] https://mailman.videolan.org/listinfo/vlc-commits
