#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
#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
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