Commit b2dc803b authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont
Browse files

Remove the HTTP interface thread, and save 20 wakeups per seconds.

The idle HTTP interace is down from 30 to 10 wakeups/s (I think the remaining ones are due to HTTPd core).
parent dd2cedba
......@@ -86,7 +86,6 @@ vlc_module_end();
/*****************************************************************************
* Local prototypes
*****************************************************************************/
static void Run ( intf_thread_t *p_intf );
int E_(ArtCallback)( httpd_handler_sys_t *p_args,
httpd_handler_t *p_handler, char *_p_url,
uint8_t *_p_request, int i_type,
......@@ -354,7 +353,6 @@ static int Open( vlc_object_t *p_this )
goto failed;
}
p_intf->pf_run = Run;
free( psz_src );
if( config_GetInt( p_intf, "http-album-art" ) )
......@@ -453,18 +451,6 @@ static void Close ( vlc_object_t *p_this )
pl_Release( p_this );
}
/*****************************************************************************
* Run: http interface thread
*****************************************************************************/
static void Run( intf_thread_t *p_intf )
{
while( !intf_ShouldDie( p_intf ) )
{
/* Wait a bit */
msleep( INTF_IDLE_SLEEP );
}
}
/****************************************************************************
* HttpCallback:
****************************************************************************
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment