[vlc-devel] commit: vlc_restorecancel: add an assertion ( Rémi Denis-Courmont )

git version control git at videolan.org
Tue Jan 27 16:44:45 CET 2009


vlc | branch: master | Rémi Denis-Courmont <rdenis at simphalempin.com> | Tue Jan 27 17:43:59 2009 +0200| [2eb916e2def96788144098ced3e0446a0c9f7157] | committer: Rémi Denis-Courmont 

vlc_restorecancel: add an assertion

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=2eb916e2def96788144098ced3e0446a0c9f7157
---

 src/misc/threads.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/src/misc/threads.c b/src/misc/threads.c
index f9fb8c5..bcc647a 100644
--- a/src/misc/threads.c
+++ b/src/misc/threads.c
@@ -880,6 +880,8 @@ void vlc_restorecancel (int state)
 
     if (nfo == NULL)
         return; /* Main thread - cannot be cancelled anyway */
+
+    assert (nfo->killable);
     nfo->killable = state != 0;
 
 #endif




More information about the vlc-devel mailing list