]> git.sesse.net Git - vlc/blobdiff - modules/video_filter/atmo/AtmoThread.cpp
Remove unused parameter
[vlc] / modules / video_filter / atmo / AtmoThread.cpp
index ad082172f8a2a9c6e273bd444e7d1c0852b5d387..3670d54f24590b9c526a67d3e5aaa5f1c4b571f5 100644 (file)
@@ -21,8 +21,8 @@ CThread::CThread(vlc_object_t *pOwner)
 
         vlc_object_attach( m_pAtmoThread, m_pOwner);
 
-        vlc_mutex_init( m_pAtmoThread, &m_TerminateLock );
-        err = vlc_cond_init( m_pAtmoThread, &m_TerminateCond );
+        vlc_mutex_init( &m_TerminateLock );
+        err = vlc_cond_init( &m_TerminateCond );
         if(err) {
            msg_Err( m_pAtmoThread, "vlc_cond_init failed %d",err);
         }
@@ -67,16 +67,18 @@ CThread::~CThread(void)
 
 #if defined(_ATMO_VLC_PLUGIN_)
 
-void CThread::ThreadProc(atmo_thread_t *pAtmoThread)
+void *CThread::ThreadProc(vlc_object_t *obj)
 {
+      atmo_thread_t *pAtmoThread = (atmo_thread_t *)obj;
       CThread *pThread = (CThread *)pAtmoThread->p_thread;
       if(pThread) {
-         // give feedback I'am running?
-         vlc_thread_ready( pThread->m_pAtmoThread );
-
-            pThread->Execute();
+         int canc;
 
+         canc = vlc_savecancel ();
+         pThread->Execute();
+         vlc_restorecancel (canc);
       }
+      return NULL;
 }
 
 #else
@@ -136,8 +138,7 @@ void CThread::Run()
    if(vlc_thread_create( m_pAtmoThread,
                          "Atmo-CThread-Class",
                          CThread::ThreadProc,
-                         VLC_THREAD_PRIORITY_LOW,
-                         false ))
+                         VLC_THREAD_PRIORITY_LOW ))
    {
       msg_Err( m_pOwner, "cannot launch one of the AtmoLight threads");
    }