#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?
pThread->Execute();
}
+ return NULL;
}
#else
private:
#if defined(_ATMO_VLC_PLUGIN_)
- static void ThreadProc(atmo_thread_t *pAtmoThread);
+ static void *ThreadProc(vlc_object_t *);
#else
static DWORD WINAPI ThreadProc(LPVOID lpParameter);
#endif
} fadethread_t;
-static void FadeToColorThread(fadethread_t *p_fadethread);
+static void *FadeToColorThread(vlc_object_t *);
/*****************************************************************************
* to a target color defined in p_fadethread struct
* use for: Fade to Pause Color, and Fade to End Color
*****************************************************************************/
-static void FadeToColorThread(fadethread_t *p_fadethread)
+static void *FadeToColorThread(vlc_object_t *obj)
{
+ fadethread_t *p_fadethread = (fadethread_t *)obj;
filter_sys_t *p_sys = (filter_sys_t *)p_fadethread->p_filter->p_sys;
int i_steps_done = 0;
int i_index;