} event_thread_t;
-static int Raw1394EventThread( vlc_object_t * );
+static void* Raw1394EventThread( vlc_object_t * );
static int Raw1394Handler( raw1394handle_t, int, size_t, quadlet_t * );
static int Raw1394GetNumPorts( access_t *p_access );
return p_block;
}
-static int Raw1394EventThread( vlc_object_t *p_this )
+static void* Raw1394EventThread( vlc_object_t *p_this )
{
event_thread_t *p_ev = (event_thread_t *) p_this;
access_t *p_access = (access_t *) p_ev->p_access;
}
AVCStop( p_access, p_sys->i_node );
- return VLC_SUCCESS;
+ return NULL;
}
static int Raw1394Handler( raw1394handle_t handle, int channel, size_t length, quadlet_t *data )
} event_thread_t;
-static int EventThread( vlc_object_t * );
+static void* EventThread( vlc_object_t * );
struct demux_sys_t
{
static int EventKey ( vlc_object_t *, char const *,
vlc_value_t, vlc_value_t, void * );
-static int EventThread( vlc_object_t *p_this )
+static void* EventThread( vlc_object_t *p_this )
{
event_thread_t *p_ev = (event_thread_t*)p_this;
demux_sys_t *p_sys = p_ev->p_demux->p_sys;
vlc_mutex_destroy( &p_ev->lock );
- return VLC_SUCCESS;
+ return NULL;
}
static int EventMouse( vlc_object_t *p_this, char const *psz_var,
static int mms_ReceivePacket( access_t * );
-static void KeepAliveThread( vlc_object_t *p_this );
+static void* KeepAliveThread( vlc_object_t *p_this );
int MMSTUOpen( access_t *p_access )
{
return -1;
}
-static void KeepAliveThread( vlc_object_t *p_this )
+static void* KeepAliveThread( vlc_object_t *p_this )
{
mmstu_keepalive_thread_t *p_thread = (mmstu_keepalive_thread_t *) p_this;
access_t *p_access = p_thread->p_access;
vlc_object_timedwait( p_thread, mdate() + 10000000 );
}
vlc_object_unlock( p_thread );
+ return NULL;
}
static int Seek( access_t *, int64_t );
static int Control( access_t *, int, va_list );
-static void ThreadControl( vlc_object_t * );
+static void* ThreadControl( vlc_object_t * );
/*****************************************************************************
* Open: open the rtmp connection
/*****************************************************************************
* ThreadControl: manage control messages and pipe media to Read
*****************************************************************************/
-static void ThreadControl( vlc_object_t *p_this )
+static void* ThreadControl( vlc_object_t *p_this )
{
rtmp_control_thread_t *p_thread = (rtmp_control_thread_t *) p_this;
rtmp_packet_t *rtmp_packet;
block_FifoWake( p_thread->p_fifo_input );
}
}
+ return NULL;
}
static int Seek( access_t *, int64_t );
static block_t *Block ( access_t *p_access );
static int Control( access_t *, int i_query, va_list args );
-static void Thread ( access_t *p_access );
+static void* Thread ( vlc_object_t *p_this );
static int WriteBlockToFile( access_t *p_access, block_t *p_block );
static block_t *ReadBlockFromFile( access_t *p_access );
static char *GetTmpFilePath( access_t *p_access );
/*****************************************************************************
*
*****************************************************************************/
-static void Thread( access_t *p_access )
+static void* Thread( vlc_object_t* p_this )
{
+ access_t *p_access = (access_t*)p_this;
access_sys_t *p_sys = p_access->p_sys;
access_t *p_src = p_access->p_source;
block_t *p_block;
/* Send dummy packet to avoid deadlock in Block() */
block_FifoPut( p_sys->p_fifo, block_New( p_access, 0 ) );
+ return NULL;
}
/*****************************************************************************
#ifdef HAVE_FONTCONFIG
static vlc_object_t *FontBuilderAttach( filter_t *p_filter, vlc_mutex_t **pp_lock );
-static void FontBuilderDetach( filter_t *p_filter, vlc_object_t *p_fontbuilder );
-static void FontBuilderThread( vlc_object_t *p_this);
-static void FontBuilderDestructor( vlc_object_t *p_this );
-static int FontBuilderDone( vlc_object_t*, const char *, vlc_value_t, vlc_value_t,
+static void FontBuilderDetach( filter_t *p_filter, vlc_object_t *p_fontbuilder );
+static void* FontBuilderThread( vlc_object_t *p_this);
+static void FontBuilderDestructor( vlc_object_t *p_this );
+static int FontBuilderDone( vlc_object_t*, const char *, vlc_value_t, vlc_value_t,
void* );
#endif
}
vlc_mutex_unlock( lock );
}
-static void FontBuilderThread( vlc_object_t *p_this )
+static void* FontBuilderThread( vlc_object_t *p_this )
{
FcConfig *p_fontconfig = FcInitLoadConfig();
var_SetBool( p_this, "build-done", true );
}
+ return NULL;
}
static void FontBuilderDestructor( vlc_object_t *p_this )
{
static int Open ( vlc_object_t * );
static void Close ( vlc_object_t * );
-static void GtkMain ( vlc_object_t * );
+static void* GtkMain ( vlc_object_t * );
/*****************************************************************************
* Local variables (mutex-protected).
* this part of the interface is in a separate thread so that we can call
* gtk_main() from within it without annoying the rest of the program.
*****************************************************************************/
-static void GtkMain( vlc_object_t *p_this )
+static void* GtkMain( vlc_object_t *p_this )
{
/* gtk_init needs to know the command line. We don't care, so we
* give it an empty one */
gtk_main();
gdk_threads_leave();
+ return NULL;
}
static int Open ( vlc_object_t * );
static void Close ( vlc_object_t * );
-static void QteMain ( qte_thread_t * );
+static void* QteMain( vlc_object_t * );
/*****************************************************************************
* Local variables (mutex-protected).
* this part of the interface is in a separate thread so that we can call
* qte_main() from within it without annoying the rest of the program.
*****************************************************************************/
-static void QteMain( qte_thread_t *p_this )
+static void* QteMain( vlc_object_t* p_vlc_obj )
{
+ qte_thread_t *p_this = (qte_thread_t*)p_vlc_obj;
int i_argc = 1;
p_this->b_gui_server = false;
vlc_thread_ready( p_this );
p_this->p_qte_application->exec();
+
+ return NULL;
}
static int MediaAddES( vod_t *, vod_media_t *, es_format_t * );
static void MediaDelES( vod_t *, vod_media_t *, es_format_t * );
-static void CommandThread( vlc_object_t *p_this );
-static void CommandPush( vod_t *, rtsp_cmd_type_t, vod_media_t *, const char *psz_session,
- double f_arg, const char *psz_arg );
+static void* CommandThread( vlc_object_t *p_this );
+static void CommandPush( vod_t *, rtsp_cmd_type_t, vod_media_t *, const char *psz_session,
+ double f_arg, const char *psz_arg );
static rtsp_client_t *RtspClientNew( vod_media_t *, char * );
static rtsp_client_t *RtspClientGet( vod_media_t *, const char * );
block_FifoPut( p_vod->p_sys->p_fifo_cmd, p_cmd );
}
-static void CommandThread( vlc_object_t *p_this )
+static void* CommandThread( vlc_object_t *p_this )
{
vod_t *p_vod = (vod_t*)p_this;
vod_sys_t *p_sys = p_vod->p_sys;
free( cmd.psz_session );
free( cmd.psz_arg );
}
+ return NULL;
}
/****************************************************************************
block_t* );
static sout_access_out_t *GrabberCreate( sout_stream_t *p_sout );
-static void ThreadSend( vlc_object_t *p_this );
+static void* ThreadSend( vlc_object_t *p_this );
static void SDPHandleUrl( sout_stream_t *, const char * );
/****************************************************************************
* RTP send
****************************************************************************/
-static void ThreadSend( vlc_object_t *p_this )
+static void* ThreadSend( vlc_object_t *p_this )
{
sout_stream_id_t *id = (sout_stream_id_t *)p_this;
unsigned i_caching = id->i_caching;
rtp_add_sink( id, fd, true );
}
}
+ return NULL;
}
int rtp_add_sink( sout_stream_id_t *id, int fd, bool rtcp_mux )
static int transcode_osd_process( sout_stream_t *, sout_stream_id_t *,
block_t *, block_t ** );
-static int EncoderThread( struct sout_stream_sys_t * p_sys );
+static void* EncoderThread( vlc_object_t * p_this );
static const int pi_channels_maps[6] =
{
return VLC_SUCCESS;
}
-static int EncoderThread( sout_stream_sys_t *p_sys )
+static void* EncoderThread( vlc_object_t* p_this )
{
+ sout_stream_sys_t *p_sys = (sout_stream_sys_t*)p_this;
sout_stream_id_t *id = p_sys->id_video;
picture_t *p_pic;
}
block_ChainRelease( p_sys->p_buffers );
- return 0;
+ return NULL;
}
struct picture_sys_t