]> git.sesse.net Git - vlc/blobdiff - modules/video_filter/atmo/AtmoThread.cpp
Plugins: push cancellation down
[vlc] / modules / video_filter / atmo / AtmoThread.cpp
index cdf22a5dd512620b0dd683cbca1846b1c8a70f55..f4f618e0301b7fdcb2a0b5de7e72176170db9592 100644 (file)
@@ -72,11 +72,14 @@ void *CThread::ThreadProc(vlc_object_t *obj)
       atmo_thread_t *pAtmoThread = (atmo_thread_t *)obj;
       CThread *pThread = (CThread *)pAtmoThread->p_thread;
       if(pThread) {
+         int canc;
+
          // give feedback I'am running?
          vlc_thread_ready( pThread->m_pAtmoThread );
 
-            pThread->Execute();
-
+         canc = vlc_savecancel ();
+         pThread->Execute();
+         vlc_restorecancel (canc);
       }
       return NULL;
 }