]> git.sesse.net Git - vlc/blobdiff - modules/video_filter/atmo/AtmoThread.h
amto: fix dealocator (delete [] instead of free)
[vlc] / modules / video_filter / atmo / AtmoThread.h
index 128982389e4b89fb275ad621a0cf1a403953767e..1fbcdf03f7ecac1143e9488ba14d2308b232d05b 100644 (file)
 
 #if defined(_ATMO_VLC_PLUGIN_)
 // use threading stuff from videolan!
-#   include <vlc/vlc.h>
-#   include <vlc_threads_funcs.h>
+#   include <vlc_common.h>
 #   include <vlc_threads.h>
-
-    typedef struct
-    {
-      VLC_COMMON_MEMBERS
-      void *p_thread; /* cast to CThread * */
-    } atmo_thread_t;
-
 #else
 #   include <windows.h>
 #endif
@@ -33,10 +25,11 @@ protected:
 
 #if defined(_ATMO_VLC_PLUGIN_)
 
-    atmo_thread_t *m_pAtmoThread;
     vlc_mutex_t  m_TerminateLock;
     vlc_cond_t   m_TerminateCond;
     vlc_object_t *m_pOwner;
+    ATMO_BOOL    m_HasThread;
+    vlc_thread_t m_Thread;
 
 #else
 
@@ -51,7 +44,7 @@ protected:
 private:
 
 #if defined(_ATMO_VLC_PLUGIN_)
-    static void ThreadProc(atmo_thread_t *pAtmoThread);
+    static void *ThreadProc(void *);
 #else
        static DWORD WINAPI ThreadProc(LPVOID lpParameter);
 #endif