]> git.sesse.net Git - vlc/commitdiff
Remove unused parameter
authorRémi Denis-Courmont <rdenis@simphalempin.com>
Sat, 17 Jan 2009 16:33:34 +0000 (18:33 +0200)
committerRémi Denis-Courmont <rdenis@simphalempin.com>
Sat, 17 Jan 2009 16:33:34 +0000 (18:33 +0200)
40 files changed:
include/vlc_threads.h
modules/access/dv.c
modules/access/dvdnav.c
modules/access/rtmp/access.c
modules/access_output/bonjour.c
modules/access_output/rtmp.c
modules/access_output/udp.c
modules/audio_output/alsa.c
modules/audio_output/directx.c
modules/audio_output/hd1000a.cpp
modules/audio_output/oss.c
modules/audio_output/portaudio.c
modules/audio_output/waveout.c
modules/codec/avcodec/encoder.c
modules/demux/mkv/demux.cpp
modules/gui/qnx/aout.c
modules/gui/wince/wince.cpp
modules/gui/wxwidgets/wxwidgets.cpp
modules/misc/freetype.c
modules/misc/rtsp.c
modules/stream_out/rtp.c
modules/stream_out/transcode.c
modules/video_filter/atmo/AtmoThread.cpp
modules/video_filter/atmo/atmo.cpp
modules/video_filter/remoteosd.c
modules/video_output/msw/direct3d.c
modules/video_output/msw/directx.c
modules/video_output/msw/glwin32.c
modules/video_output/msw/wingdi.c
modules/visualization/galaktos/plugin.c
modules/visualization/goom.c
src/input/decoder.c
src/input/es_out_timeshift.c
src/input/input.c
src/input/stream_demux.c
src/interface/interface.c
src/libvlccore.sym
src/misc/threads.c
src/misc/update.c
src/network/httpd.c

index fb9bb54e8009c3b93898e38028bfd2ba193b0627..66f0f67069efc9a7587a814add012e3b025a707f 100644 (file)
@@ -152,7 +152,7 @@ VLC_EXPORT( void, vlc_cond_wait, (vlc_cond_t *, vlc_mutex_t *) );
 VLC_EXPORT( int, vlc_cond_timedwait, (vlc_cond_t *, vlc_mutex_t *, mtime_t) );
 VLC_EXPORT( int, vlc_threadvar_create, (vlc_threadvar_t * , void (*) (void *) ) );
 VLC_EXPORT( void, vlc_threadvar_delete, (vlc_threadvar_t *) );
-VLC_EXPORT( int,  __vlc_thread_create, ( vlc_object_t *, const char *, int, const char *, void * ( * ) ( vlc_object_t * ), int, bool ) );
+VLC_EXPORT( int,  vlc_thread_create, ( vlc_object_t *, const char *, int, const char *, void * ( * ) ( vlc_object_t * ), int ) );
 VLC_EXPORT( int,  __vlc_thread_set_priority, ( vlc_object_t *, const char *, int, int ) );
 VLC_EXPORT( void, __vlc_thread_join,   ( vlc_object_t * ) );
 
@@ -433,8 +433,8 @@ static inline void barrier (void)
 /*****************************************************************************
  * vlc_thread_create: create a thread
  *****************************************************************************/
-#define vlc_thread_create( P_THIS, PSZ_NAME, FUNC, PRIORITY, WAIT )         \
-    __vlc_thread_create( VLC_OBJECT(P_THIS), __FILE__, __LINE__, PSZ_NAME, FUNC, PRIORITY, WAIT )
+#define vlc_thread_create( P_THIS, PSZ_NAME, FUNC, PRIORITY )         \
+    vlc_thread_create( VLC_OBJECT(P_THIS), __FILE__, __LINE__, PSZ_NAME, FUNC, PRIORITY )
 
 /*****************************************************************************
  * vlc_thread_set_priority: set the priority of the calling thread
index e0e95170c51930ec263ec6a53a9d01b3c14b807b..de17427a91451714ac801f4075d4b0cb2352e229 100644 (file)
@@ -236,8 +236,8 @@ static int Open( vlc_object_t *p_this )
     p_sys->p_ev->pp_last = &p_sys->p_ev->p_frame;
     p_sys->p_ev->p_access = p_access;
     vlc_mutex_init( &p_sys->p_ev->lock );
-    vlc_thread_create( p_sys->p_ev, "dv event thread handler", Raw1394EventThread,
-                       VLC_THREAD_PRIORITY_OUTPUT, false );
+    vlc_thread_create( p_sys->p_ev, "dv event thread handler",
+                       Raw1394EventThread, VLC_THREAD_PRIORITY_OUTPUT );
 
     free( psz_name );
     return VLC_SUCCESS;
index 872ab19eddd546e29069f552b3a03e00326d4667..0ce6fc72e024956e88089e10450b27154a6deba5 100644 (file)
@@ -349,7 +349,7 @@ static int Open( vlc_object_t *p_this )
     p_sys->p_ev = vlc_object_create( p_demux, sizeof( event_thread_t ) );
     p_sys->p_ev->p_demux = p_demux;
     vlc_thread_create( p_sys->p_ev, "dvdnav event thread handler", EventThread,
-                       VLC_THREAD_PRIORITY_LOW, false );
+                       VLC_THREAD_PRIORITY_LOW );
 
     return VLC_SUCCESS;
 }
index 870c48d3ed0386690cd4fc89265e1a608a94ec68..14c9f4f41df23fc8faffda4b6c8538657e735e88 100644 (file)
@@ -212,7 +212,7 @@ static int Open( vlc_object_t *p_this )
     }
 
     if( vlc_thread_create( p_sys->p_thread, "rtmp control thread", ThreadControl,
-                           VLC_THREAD_PRIORITY_INPUT, false ) )
+                           VLC_THREAD_PRIORITY_INPUT ) )
     {
         msg_Err( p_access, "cannot spawn rtmp control thread" );
         goto error2;
index 89ce76178b398571acbd5b29d5ae955195482a04..3dfb9b888a136860df1342217a7629f9e7dfca92 100644 (file)
@@ -236,7 +236,7 @@ void *bonjour_start_service( vlc_object_t *p_log, const char *psz_stype,
 
     if( vlc_thread_create( p_sys->poll_thread, "Avahi Poll Iterate Thread",
                            poll_iterate_thread,
-                           VLC_THREAD_PRIORITY_HIGHEST, false ) )
+                           VLC_THREAD_PRIORITY_HIGHEST ) )
     {
         msg_Err( p_sys->p_log, "failed to create poll iterate thread" );
         goto error;
index f2155c714ae85931e80c321d0f7b989527da7893..5b730f44f71af290fee383a859207033c3a911c3 100644 (file)
@@ -218,7 +218,7 @@ static int Open( vlc_object_t *p_this )
     }
 
     if( vlc_thread_create( p_sys->p_thread, "rtmp control thread", ThreadControl,
-                           VLC_THREAD_PRIORITY_INPUT, false ) )
+                           VLC_THREAD_PRIORITY_INPUT ) )
     {
         msg_Err( p_access, "cannot spawn rtmp control thread" );
         goto error2;
index 8952c4640879ef0638dc1a66b1b30a059d9dd3c6..c49364833e0f711fc509446058a2277113a03a46 100644 (file)
@@ -250,7 +250,7 @@ static int Open( vlc_object_t *p_this )
     p_sys->p_buffer = NULL;
 
     if( vlc_thread_create( p_sys->p_thread, "sout write thread", ThreadWrite,
-                           VLC_THREAD_PRIORITY_HIGHEST, false ) )
+                           VLC_THREAD_PRIORITY_HIGHEST ) )
     {
         msg_Err( p_access, "cannot spawn sout access thread" );
         net_Close (i_handle);
index 3dbd8b70698f7b2c847ba10fa6835a3f132f5074..7f841fc6dbf67cfbc7f53b4c2a9820778df2f768 100644 (file)
@@ -685,7 +685,7 @@ static int Open( vlc_object_t *p_this )
 
     /* Create ALSA thread and wait for its readiness. */
     if( vlc_thread_create( p_aout, "aout", ALSAThread,
-                           VLC_THREAD_PRIORITY_OUTPUT, false ) )
+                           VLC_THREAD_PRIORITY_OUTPUT ) )
     {
         msg_Err( p_aout, "cannot create ALSA thread (%m)" );
         goto error;
index 1a6b504628469fc7901666d0c5a44994a404a0e3..ba40b85044662d959055459fbe19752839431b1f 100644 (file)
@@ -389,7 +389,7 @@ static int OpenAudio( vlc_object_t *p_this )
     if( vlc_thread_create( p_aout->output.p_sys->p_notif,
                            "DirectSound Notification Thread",
                            DirectSoundThread,
-                           VLC_THREAD_PRIORITY_HIGHEST, false ) )
+                           VLC_THREAD_PRIORITY_HIGHEST ) )
     {
         msg_Err( p_aout, "cannot create DirectSoundThread" );
         CloseHandle( p_aout->output.p_sys->p_notif->event );
index a317cdf4cbeb5a9deb62b5ad9967d565a1353f53..78a77d1cba7e0d3ea85d5b06ad594884c0fe7ab0 100644 (file)
@@ -168,7 +168,7 @@ static int Open( vlc_object_t * p_this )
 
     /* Create thread and wait for its readiness. */
     if( vlc_thread_create( p_aout, "aout", Thread,
-                           VLC_THREAD_PRIORITY_OUTPUT, false ) )
+                           VLC_THREAD_PRIORITY_OUTPUT ) )
     {
         msg_Err( p_aout, "cannot create OSS thread (%m)" );
         pPlayer->Close();
index 6e8d362954c936c1f5eaeae3ae1c74fa06e7da94..ee21df3f1db4743d0086328e9a970033b848df16 100644 (file)
@@ -518,7 +518,7 @@ static int Open( vlc_object_t *p_this )
 
     /* Create OSS thread and wait for its readiness. */
     if( vlc_thread_create( p_aout, "aout", OSSThread,
-                           VLC_THREAD_PRIORITY_OUTPUT, false ) )
+                           VLC_THREAD_PRIORITY_OUTPUT ) )
     {
         msg_Err( p_aout, "cannot create OSS thread (%m)" );
         close( p_sys->i_fd );
index 9f90d06d38356d0041d0409c7541b66e75580371..270d8ad293791b1b80900698df4206da2e80966c 100644 (file)
@@ -220,7 +220,7 @@ static int Open( vlc_object_t * p_this )
 
         /* Create PORTAUDIOThread */
         if( vlc_thread_create( pa_thread, "aout", PORTAUDIOThread,
-                               VLC_THREAD_PRIORITY_OUTPUT, false ) )
+                               VLC_THREAD_PRIORITY_OUTPUT ) )
         {
             msg_Err( p_aout, "cannot create PORTAUDIO thread" );
             return VLC_EGENERIC;
index 44f916a3b2ccf5339340ce03d7f346b9eac921ce..049b76ab58be74a86e4608b75acf70a586531f44 100644 (file)
@@ -435,7 +435,7 @@ static int Open( vlc_object_t *p_this )
     /* Then launch the notification thread */
     if( vlc_thread_create( p_aout->output.p_sys->p_notif,
                            "waveOut Notification Thread", WaveOutThread,
-                           VLC_THREAD_PRIORITY_OUTPUT, false ) )
+                           VLC_THREAD_PRIORITY_OUTPUT ) )
     {
         msg_Err( p_aout, "cannot create WaveOutThread" );
     }
index 557b84bba228c6388585ff3f99510b75b34fa334..0e8a0c71cb1b6295a8097a5b3fd5c7b49387101b 100644 (file)
@@ -821,7 +821,7 @@ static block_t *EncodeVideo( encoder_t *p_enc, picture_t *p_pict )
             pp_contexts[i]->b_work = 0;
             pp_contexts[i]->b_done = 0;
             if ( vlc_thread_create( pp_contexts[i], "encoder", FfmpegThread,
-                                    VLC_THREAD_PRIORITY_VIDEO, false ) )
+                                    VLC_THREAD_PRIORITY_VIDEO ) )
             {
                 msg_Err( p_enc, "cannot spawn encoder thread, expect to die soon" );
                 return NULL;
index 2057f347ea779cfcfe162601c935a6700db38a1e..9d12f5db4abb271d46164a99fab6b8c54fa7c524 100644 (file)
@@ -196,7 +196,7 @@ void demux_sys_t::StartUiThread()
         p_ev->b_die = false;
         vlc_mutex_init( &p_ev->lock );
         vlc_thread_create( p_ev, "mkv event thread handler", EventThread,
-                        VLC_THREAD_PRIORITY_LOW, false );
+                        VLC_THREAD_PRIORITY_LOW );
     }
 }
 
index 0dea8b81f6ea90a70e0f4e1cd693470204a0fe18..f0f8297cb727deb236e0f2dfd9897805b4016e31 100644 (file)
@@ -173,7 +173,7 @@ int OpenAudio( vlc_object_t *p_this )
 
     /* Create audio thread and wait for its readiness. */
     if( vlc_thread_create( p_aout, "aout", QNXaoutThread,
-                           VLC_THREAD_PRIORITY_OUTPUT, false ) )
+                           VLC_THREAD_PRIORITY_OUTPUT ) )
     {
         msg_Err( p_aout, "cannot create QNX audio thread (%m)" );
         CloseAudio( p_this );
index 33389cfa3a1e9f86984b1269b8928974de3c8053..a7a0356321d62e42cbca84d4f2f7da8df9874e11 100644 (file)
@@ -192,8 +192,7 @@ static void Run( intf_thread_t *p_intf )
 
         /* Create a new thread for the dialogs provider */
         p_intf->p_sys->thread_ready = CreateEvent (NULL, TRUE, FALSE, NULL);
-        if( vlc_thread_create( p_intf, "WinCE Dialogs Thread",
-                               MainLoop, 0, false ) )
+        if( vlc_thread_create( p_intf, "WinCE Dialogs Thread", MainLoop, 0 ) )
         {
             msg_Err( p_intf, "cannot create WinCE Dialogs Thread" );
             p_intf->pf_show_dialog = NULL;
index 09aaccd5a3fab1abe1f87e2bd78c02a95d76c50b..3062a865fa8381bb469241099183374416d8de7a 100644 (file)
@@ -278,8 +278,7 @@ static void Run( intf_thread_t *p_intf )
         /* The module is used in dialog provider mode */
 
         /* Create a new thread for wxWidgets */
-        if( vlc_thread_create( p_intf, "Skins Dialogs Thread",
-                               Init, 0, true ) )
+        if( vlc_thread_create( p_intf, "Skins Dialogs Thread", Init, 0 ) )
         {
             msg_Err( p_intf, "cannot create Skins Dialogs Thread" );
             p_intf->pf_show_dialog = NULL;
index abf8b34f0edc683240585f33ba1432b969f9b5a0..ac34fc8d762d53168f561585380736bca1734876 100644 (file)
@@ -468,8 +468,7 @@ static vlc_object_t *FontBuilderAttach( filter_t *p_filter )
             if( vlc_thread_create( p_fontbuilder,
                                    "fontlist builder",
                                    FontBuilderThread,
-                                   VLC_THREAD_PRIORITY_LOW,
-                                   false ) )
+                                   VLC_THREAD_PRIORITY_LOW ) )
             {
                 msg_Warn( p_filter, "fontconfig database builder thread can't "
                         "be launched. Font styling support will be limited." );
index 262cbc70c2add68ec619fdb7b6f2b9878d33dc7b..164021e0dd3da75cac6771ca7c698c94d3ce2f44 100644 (file)
@@ -308,7 +308,7 @@ static int Open( vlc_object_t *p_this )
 
     p_sys->p_fifo_cmd = block_FifoNew();
     if( vlc_thread_create( p_vod, "rtsp vod thread", CommandThread,
-                           VLC_THREAD_PRIORITY_LOW, false ) )
+                           VLC_THREAD_PRIORITY_LOW ) )
     {
         msg_Err( p_vod, "cannot spawn rtsp vod thread" );
         block_FifoRelease( p_sys->p_fifo_cmd );
index 1d1065502af9f46117aa5b832f35d013723d611c..09cf1c961e1e51086640ea1b0d4390d765980d6d 100644 (file)
@@ -1263,7 +1263,7 @@ static sout_stream_id_t *Add( sout_stream_t *p_stream, es_format_t *p_fmt )
 
     id->p_fifo = block_FifoNew();
     if( vlc_thread_create( id, "RTP send thread", ThreadSend,
-                           VLC_THREAD_PRIORITY_HIGHEST, false ) )
+                           VLC_THREAD_PRIORITY_HIGHEST ) )
         goto error;
 
     /* Update p_sys context */
index d9846953ba07af97852a4449eef93f642a405479..90dc2819360ee7d4736218e0c0ba88069d5696e0 100644 (file)
@@ -1538,8 +1538,7 @@ static int transcode_video_new( sout_stream_t *p_stream, sout_stream_id_t *id )
         p_sys->i_last_pic = 0;
         p_sys->p_buffers = NULL;
         p_sys->b_die = p_sys->b_error = 0;
-        if( vlc_thread_create( p_sys, "encoder", EncoderThread, i_priority,
-                               false ) )
+        if( vlc_thread_create( p_sys, "encoder", EncoderThread, i_priority ) )
         {
             msg_Err( p_stream, "cannot spawn encoder thread" );
             module_unneed( id->p_decoder, id->p_decoder->p_module );
index cf96680a41368610bc23cab8e9a98ee9bb3ebfca..3670d54f24590b9c526a67d3e5aaa5f1c4b571f5 100644 (file)
@@ -138,8 +138,7 @@ void CThread::Run()
    if(vlc_thread_create( m_pAtmoThread,
                          "Atmo-CThread-Class",
                          CThread::ThreadProc,
-                         VLC_THREAD_PRIORITY_LOW,
-                         false ))
+                         VLC_THREAD_PRIORITY_LOW ))
    {
       msg_Err( m_pOwner, "cannot launch one of the AtmoLight threads");
    }
index fb576eb2fe3dd147158f367b4ad1cd4ab2354994..3af9ccb78c21fa10357338e866ab50b4399e18ae 100644 (file)
@@ -944,8 +944,7 @@ static void Atmo_Shutdown(filter_t *p_filter)
             if( vlc_thread_create( p_sys->p_fadethread,
                 "AtmoLight fadeing",
                 FadeToColorThread,
-                VLC_THREAD_PRIORITY_LOW,
-                false ) )
+                VLC_THREAD_PRIORITY_LOW ) )
             {
                 msg_Err( p_filter, "cannot create FadeToColorThread" );
                 vlc_object_release( p_sys->p_fadethread );
@@ -1898,8 +1897,7 @@ static int StateCallback( vlc_object_t *p_this, char const *psz_cmd,
                 if( vlc_thread_create( p_sys->p_fadethread,
                     "AtmoLight fadeing",
                     FadeToColorThread,
-                    VLC_THREAD_PRIORITY_LOW,
-                    false) )
+                    VLC_THREAD_PRIORITY_LOW ) )
                 {
                     msg_Err( p_filter, "cannot create FadeToColorThread" );
                     vlc_object_release( p_sys->p_fadethread );
index e13cd64866b97dd41bf2279023e6eadfd9eabcf5..1b564cbd27733e8c27cb9690585dcd0b6962cd61 100644 (file)
@@ -333,8 +333,7 @@ static int CreateFilter ( vlc_object_t *p_this )
                                                 sizeof( vlc_object_t ) );
     vlc_object_attach( p_sys->p_worker_thread, p_this );
     if( vlc_thread_create( p_sys->p_worker_thread, "vnc worker thread",
-                           vnc_worker_thread,
-                           VLC_THREAD_PRIORITY_LOW, false ) )
+                           vnc_worker_thread, VLC_THREAD_PRIORITY_LOW ) )
     {
         vlc_object_detach( p_sys->p_worker_thread );
         vlc_object_release( p_sys->p_worker_thread );
@@ -715,8 +714,7 @@ static void* vnc_worker_thread( vlc_object_t *p_thread_obj )
     vlc_object_attach( p_update_request_thread, p_filter );
     if( vlc_thread_create( p_update_request_thread,
                            "vnc update request thread",
-                           update_request_thread,
-                           VLC_THREAD_PRIORITY_LOW, false ) )
+                           update_request_thread, VLC_THREAD_PRIORITY_LOW ) )
     {
         vlc_object_detach( p_update_request_thread );
         vlc_object_release( p_update_request_thread );
index f41e413c5ba2a445e5743bdccd220bd1a8a89985..d33ea8b1808ab9513c1fb16ea95f729fe99ef7e6 100644 (file)
@@ -205,7 +205,7 @@ static int OpenVideo( vlc_object_t *p_this )
     p_vout->p_sys->p_event->p_vout = p_vout;
     p_vout->p_sys->p_event->window_ready = CreateEvent( NULL, TRUE, FALSE, NULL );
     if( vlc_thread_create( p_vout->p_sys->p_event, "Vout Events Thread",
-                           EventThread, 0, false ) )
+                           EventThread, 0 ) )
     {
         msg_Err( p_vout, "cannot create Vout EventThread" );
         CloseHandle( p_vout->p_sys->p_event->window_ready );
index 006e87b71096b419d696c09634aff204fa8bb677..e3242794e711e99457812a2e57adf76efdf4f800 100644 (file)
@@ -279,7 +279,7 @@ static int OpenVideo( vlc_object_t *p_this )
     p_vout->p_sys->p_event->p_vout = p_vout;
     p_vout->p_sys->p_event->window_ready = CreateEvent( NULL, TRUE, FALSE, NULL );
     if( vlc_thread_create( p_vout->p_sys->p_event, "Vout Events Thread",
-                           EventThread, 0, false ) )
+                           EventThread, 0 ) )
     {
         msg_Err( p_vout, "cannot create Vout EventThread" );
         CloseHandle( p_vout->p_sys->p_event->window_ready );
index af231693c36f53b142a77fa609b8a8fa2a2f8abe..10f6bd8d834d06ce5925f44ccc8d39d533c14a74 100644 (file)
@@ -136,7 +136,7 @@ static int OpenVideo( vlc_object_t *p_this )
     p_vout->p_sys->p_event->p_vout = p_vout;
     p_vout->p_sys->p_event->window_ready = CreateEvent( NULL, TRUE, FALSE, NULL );
     if( vlc_thread_create( p_vout->p_sys->p_event, "Vout Events Thread",
-                           EventThread, 0, false ) )
+                           EventThread, 0 ) )
     {
         msg_Err( p_vout, "cannot create Vout EventThread" );
         CloseHandle( p_vout->p_sys->p_event->window_ready );
index 6047680de306b85dc048ea66bb6ce40e2b0d1ea2..ef41f3ff14b8bc56b427c597237bd6412ea21dd2 100644 (file)
@@ -244,7 +244,7 @@ static int OpenVideo ( vlc_object_t *p_this )
     p_vout->p_sys->p_event->p_vout = p_vout;
     p_vout->p_sys->p_event->window_ready = CreateEvent( NULL, TRUE, FALSE, NULL );
     if( vlc_thread_create( p_vout->p_sys->p_event, "Vout Events Thread",
-                           EventThread, 0, false ) )
+                           EventThread, 0 ) )
     {
         msg_Err( p_vout, "cannot create Vout EventThread" );
         CloseHandle( p_vout->p_sys->p_event->window_ready );
index 94b75a3aa17f339d3f5b4eebbbf72783a6b11fef..99712ef1c7be6163d05593ec151ef5187194f6bc 100644 (file)
@@ -121,7 +121,7 @@ static int Open( vlc_object_t *p_this )
     p_thread->psz_title = TitleGet( VLC_OBJECT( p_filter ) );
 
     if( vlc_thread_create( p_thread, "galaktos update thread", Thread,
-                           VLC_THREAD_PRIORITY_LOW, false ) )
+                           VLC_THREAD_PRIORITY_LOW ) )
     {
         msg_Err( p_filter, "cannot lauch galaktos thread" );
         free( p_thread->psz_title );
index d62071d7b318fbe5f72114a6642762ef499b116f..59629343187b1f0becada4192436251b1a0d441d 100644 (file)
@@ -193,7 +193,7 @@ static int Open( vlc_object_t *p_this )
     p_thread->psz_title = TitleGet( VLC_OBJECT( p_filter ) );
 
     if( vlc_thread_create( p_thread, "Goom Update Thread", Thread,
-                           VLC_THREAD_PRIORITY_LOW, false ) )
+                           VLC_THREAD_PRIORITY_LOW ) )
     {
         msg_Err( p_filter, "cannot lauch goom thread" );
         vlc_object_release( p_thread->p_vout );
index bcaebb86cba063b3f9f48896607739e35fa74474..a4d6f7d52c8e5a20a989cfd56b2fe89050d9d54a 100644 (file)
@@ -312,8 +312,7 @@ decoder_t *input_DecoderNew( input_thread_t *p_input,
         i_priority = VLC_THREAD_PRIORITY_VIDEO;
 
     /* Spawn the decoder thread */
-    if( vlc_thread_create( p_dec, "decoder", DecoderThread,
-                           i_priority, false ) )
+    if( vlc_thread_create( p_dec, "decoder", DecoderThread, i_priority ) )
     {
         msg_Err( p_dec, "cannot spawn decoder thread" );
         module_unneed( p_dec, p_dec->p_module );
index 02cb819a79a283fbbe7552bf08ed8378e05985a6..8b0c6180e6be0b3129b3462e61bb19d191daba01 100644 (file)
@@ -732,7 +732,7 @@ static int TsStart( es_out_t *p_out )
 
     p_sys->b_delayed = true;
     if( vlc_thread_create( p_ts, "es out timeshift",
-                           TsRun, VLC_THREAD_PRIORITY_INPUT, false ) )
+                           TsRun, VLC_THREAD_PRIORITY_INPUT ) )
     {
         msg_Err( p_sys->p_input, "cannot create input thread" );
 
index 53dcdbed86671122a6f91f724a4747e26c447fe2..5a2745285b305922a41a8ddadc18838602986eef 100644 (file)
@@ -365,7 +365,7 @@ input_thread_t *__input_CreateThreadExtended( vlc_object_t *p_parent,
 
     /* Create thread and wait for its readiness. */
     if( vlc_thread_create( p_input, "input", Run,
-                           VLC_THREAD_PRIORITY_INPUT, false ) )
+                           VLC_THREAD_PRIORITY_INPUT ) )
     {
         input_ChangeState( p_input, ERROR_S );
         msg_Err( p_input, "cannot create input thread" );
@@ -403,7 +403,7 @@ int __input_Read( vlc_object_t *p_parent, input_item_t *p_item,
     else
     {
         if( vlc_thread_create( p_input, "input", RunAndDestroy,
-                               VLC_THREAD_PRIORITY_INPUT, false ) )
+                               VLC_THREAD_PRIORITY_INPUT ) )
         {
             input_ChangeState( p_input, ERROR_S );
             msg_Err( p_input, "cannot create input thread" );
index 90d583bf35e8245843abc6102a5c08380ff5ee1b..90e6d9130b3753cd6c39505799c1eadc45ac8272 100644 (file)
@@ -92,7 +92,7 @@ stream_t *__stream_DemuxNew( vlc_object_t *p_obj, const char *psz_demux,
     }
 
     if( vlc_thread_create( s, "stream out", DStreamThread,
-                           VLC_THREAD_PRIORITY_INPUT, false ) )
+                           VLC_THREAD_PRIORITY_INPUT ) )
     {
         stream_CommonDelete( s );
         free( p_sys->psz_name );
index a3fb41a6fae640cdd7863a0beb6ccfbd790a4613..baa305a532f375870e166809f948fd1fefb7826d 100644 (file)
@@ -130,7 +130,7 @@ int intf_RunThread( intf_thread_t *p_intf )
     if( p_intf->b_should_run_on_first_thread )
     {
         if( vlc_thread_create( p_intf, "interface", MonitorLibVLCDeath,
-                               VLC_THREAD_PRIORITY_LOW, false ) )
+                               VLC_THREAD_PRIORITY_LOW ) )
         {
             msg_Err( p_intf, "cannot spawn libvlc death monitoring thread" );
             return VLC_EGENERIC;
@@ -150,7 +150,7 @@ int intf_RunThread( intf_thread_t *p_intf )
 #endif
     /* Run the interface in a separate thread */
     if( vlc_thread_create( p_intf, "interface", RunInterface,
-                           VLC_THREAD_PRIORITY_LOW, false ) )
+                           VLC_THREAD_PRIORITY_LOW ) )
     {
         msg_Err( p_intf, "cannot spawn interface thread" );
         return VLC_EGENERIC;
index ab96c326451b7dd87dc579296681dff68f21856a..bd7df4a0f3df6178f1b65da3da16fd572c6e7e18 100644 (file)
@@ -504,7 +504,7 @@ vlc_strcasestr
 vlc_strlcpy
 vlc_strtoll
 vlc_submodule_create
-__vlc_thread_create
+vlc_thread_create
 __vlc_thread_join
 __vlc_thread_set_priority
 vlc_threadvar_create
index 53d59f7ba68c1449462845efc1773526db6fcef5..e35d6b5fab3328068d82be82ff333f756cf98320 100644 (file)
@@ -845,15 +845,16 @@ static void *thread_entry (void *data)
     return NULL;
 }
 
+#undef vlc_thread_create
 /*****************************************************************************
- * vlc_thread_create: create a thread, inner version
+ * vlc_thread_create: create a thread
  *****************************************************************************
  * Note that i_priority is only taken into account on platforms supporting
  * userland real-time priority threads.
  *****************************************************************************/
-int __vlc_thread_create( vlc_object_t *p_this, const char * psz_file, int i_line,
-                         const char *psz_name, void * ( *func ) ( vlc_object_t * ),
-                         int i_priority, bool b_wait )
+int vlc_thread_create( vlc_object_t *p_this, const char * psz_file, int i_line,
+                       const char *psz_name, void *(*func) ( vlc_object_t * ),
+                       int i_priority )
 {
     int i_ret;
     vlc_object_internals_t *p_priv = vlc_internals( p_this );
@@ -881,11 +882,8 @@ int __vlc_thread_create( vlc_object_t *p_this, const char * psz_file, int i_line
     p_priv->b_thread = true;
     i_ret = vlc_clone( &p_priv->thread_id, thread_entry, boot, i_priority );
     if( i_ret == 0 )
-    {
         msg_Dbg( p_this, "thread (%s) created at priority %d (%s:%d)",
                  psz_name, i_priority, psz_file, i_line );
-        assert( !b_wait );
-    }
     else
     {
         p_priv->b_thread = false;
index 647626ce0be27a660c58ddaf088ea5b28bdec888..7a0f51efa05285664421193305d2de367e4420b5 100644 (file)
@@ -1392,7 +1392,7 @@ void update_Check( update_t *p_update, void (*pf_callback)( void*, bool ), void
     p_uct->p_data = p_data;
 
     vlc_thread_create( p_uct, "check for update", update_CheckReal,
-                       VLC_THREAD_PRIORITY_LOW, false );
+                       VLC_THREAD_PRIORITY_LOW );
 }
 
 void* update_CheckReal( vlc_object_t* p_this )
@@ -1505,7 +1505,7 @@ void update_Download( update_t *p_update, const char *destination )
     p_udt->psz_destination = destination ? strdup( destination ) : NULL;
 
     vlc_thread_create( p_udt, "download update", update_DownloadReal,
-                       VLC_THREAD_PRIORITY_LOW, false );
+                       VLC_THREAD_PRIORITY_LOW );
 }
 
 static void* update_DownloadReal( vlc_object_t *p_this )
index a743b5963ced88759ccb5f9f6b46f57420229fb8..c55077ffd64c651df72c54471a08d03423ec9fbc 100644 (file)
@@ -1110,7 +1110,7 @@ httpd_host_t *httpd_TLSHostNew( vlc_object_t *p_this, const char *psz_hostname,
 
     /* create the thread */
     if( vlc_thread_create( host, "httpd host thread", httpd_HostThread,
-                           VLC_THREAD_PRIORITY_LOW, false ) )
+                           VLC_THREAD_PRIORITY_LOW ) )
     {
         msg_Err( p_this, "cannot spawn http host thread" );
         goto error;