[PATCH] atmo video filter compile fix

Filippo Carone littlejohn at videolan.org
Sun Aug 3 19:11:13 CEST 2008


---
 modules/video_filter/atmo/AtmoThread.cpp |    3 ++-
 modules/video_filter/atmo/AtmoThread.h   |    2 +-
 modules/video_filter/atmo/atmo.cpp       |    5 +++--
 3 files changed, 6 insertions(+), 4 deletions(-)

diff --git a/modules/video_filter/atmo/AtmoThread.cpp b/modules/video_filter/atmo/AtmoThread.cpp
index 18abfc2..0fe47b3 100644
--- a/modules/video_filter/atmo/AtmoThread.cpp
+++ b/modules/video_filter/atmo/AtmoThread.cpp
@@ -67,8 +67,9 @@ CThread::~CThread(void)
 
 #if defined(_ATMO_VLC_PLUGIN_)
 
-void CThread::ThreadProc(atmo_thread_t *pAtmoThread)
+void* CThread::ThreadProc(vlc_object_t *p_vlc_object)
 {
+      atmo_thread_t *pAtmoThread = (atmo_thread_t *) p_vlc_object;
       CThread *pThread = (CThread *)pAtmoThread->p_thread;
       if(pThread) {
          // give feedback I'am running?
diff --git a/modules/video_filter/atmo/AtmoThread.h b/modules/video_filter/atmo/AtmoThread.h
index a129e9f..49f9a39 100644
--- a/modules/video_filter/atmo/AtmoThread.h
+++ b/modules/video_filter/atmo/AtmoThread.h
@@ -50,7 +50,7 @@ protected:
 private:
 
 #if defined(_ATMO_VLC_PLUGIN_)
-    static void ThreadProc(atmo_thread_t *pAtmoThread);
+    static void* ThreadProc(vlc_object_t *pAtmoThread);
 #else
 	static DWORD WINAPI ThreadProc(LPVOID lpParameter);
 #endif
diff --git a/modules/video_filter/atmo/atmo.cpp b/modules/video_filter/atmo/atmo.cpp
index 79b4ddb..b622f2a 100644
--- a/modules/video_filter/atmo/atmo.cpp
+++ b/modules/video_filter/atmo/atmo.cpp
@@ -555,7 +555,7 @@ typedef struct
 
 } fadethread_t;
 
-static void FadeToColorThread(fadethread_t *p_fadethread);
+static void* FadeToColorThread(vlc_object_t *p_vlc_object);
 
 
 /*****************************************************************************
@@ -1723,8 +1723,9 @@ static picture_t * Filter( filter_t *p_filter, picture_t *p_pic )
 * 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 *p_vlc_object)
 {
+    fadethread_t *p_fadethread = (fadethread_t *) p_vlc_object;
     filter_sys_t *p_sys = (filter_sys_t *)p_fadethread->p_filter->p_sys;
     int i_steps_done = 0;
     int i_index;
-- 
1.5.4.3


--------------070607040700050404020008--


More information about the vlc-devel mailing list