[vlc-commits] win32: assert when VLC_CANCEL_ADDR_SET has another address already set
Steve Lhomme
git at videolan.org
Thu Jun 16 19:36:08 CEST 2016
vlc | branch: master | Steve Lhomme <robux4 at videolabs.io> | 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 <remi at remlab.net>
> 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;
More information about the vlc-commits
mailing list