From 67f455a8bc8ffa11a3596392b5f0051811918a19 Mon Sep 17 00:00:00 2001 From: =?utf8?q?R=C3=A9mi=20Denis-Courmont?= Date: Mon, 8 Sep 2008 19:18:46 +0300 Subject: [PATCH] Do not call vlc_thread_ready with non-waiting vlc_thread_create --- modules/access_output/bonjour.c | 1 - modules/audio_output/directx.c | 3 --- modules/video_filter/atmo/AtmoThread.cpp | 3 --- modules/video_filter/atmo/atmo.cpp | 2 -- 4 files changed, 9 deletions(-) diff --git a/modules/access_output/bonjour.c b/modules/access_output/bonjour.c index 6bae0f1044..6092c09000 100644 --- a/modules/access_output/bonjour.c +++ b/modules/access_output/bonjour.c @@ -175,7 +175,6 @@ static void client_callback( AvahiClient *c, static void* poll_iterate_thread( vlc_object_t *p_this ) { poll_thread_t *p_pt = (poll_thread_t*)p_this; - vlc_thread_ready( p_pt ); int canc = vlc_savecancel (); while( vlc_object_alive (p_pt) ) diff --git a/modules/audio_output/directx.c b/modules/audio_output/directx.c index 00068bd657..265a39e7e7 100644 --- a/modules/audio_output/directx.c +++ b/modules/audio_output/directx.c @@ -1059,9 +1059,6 @@ static void* DirectSoundThread( vlc_object_t *p_this ) /* We don't want any resampling when using S/PDIF output */ b_sleek = p_aout->output.output.i_format == VLC_FOURCC('s','p','d','i'); - /* Tell the main thread that we are ready */ - vlc_thread_ready( p_notif ); - msg_Dbg( p_notif, "DirectSoundThread ready" ); /* Wait here until Play() is called */ diff --git a/modules/video_filter/atmo/AtmoThread.cpp b/modules/video_filter/atmo/AtmoThread.cpp index e3a83d67bc..cf96680a41 100644 --- a/modules/video_filter/atmo/AtmoThread.cpp +++ b/modules/video_filter/atmo/AtmoThread.cpp @@ -74,9 +74,6 @@ void *CThread::ThreadProc(vlc_object_t *obj) if(pThread) { int canc; - // give feedback I'am running? - vlc_thread_ready( pThread->m_pAtmoThread ); - canc = vlc_savecancel (); pThread->Execute(); vlc_restorecancel (canc); diff --git a/modules/video_filter/atmo/atmo.cpp b/modules/video_filter/atmo/atmo.cpp index 7ac2a3ad20..e78bb4cdf0 100644 --- a/modules/video_filter/atmo/atmo.cpp +++ b/modules/video_filter/atmo/atmo.cpp @@ -1737,8 +1737,6 @@ static void *FadeToColorThread(vlc_object_t *obj) int i_src_green; int i_src_blue; - vlc_thread_ready( p_fadethread ); - uint8_t *p_source = NULL; int canc = vlc_savecancel (); -- 2.39.2