Commit f3f24a8a authored by Jean-Paul Saman's avatar Jean-Paul Saman

input: do not run stats when it is disabled by the user

parent 16a74985
......@@ -729,8 +729,11 @@ static void MainLoopInterface( input_thread_t *p_input )
*/
static void MainLoopStatistic( input_thread_t *p_input )
{
stats_ComputeInputStats( p_input, p_input->p->p_item->p_stats );
input_SendEventStatistics( p_input );
if( libvlc_stats( p_input ) )
{
stats_ComputeInputStats( p_input, p_input->p->p_item->p_stats );
input_SendEventStatistics( p_input );
}
}
/**
......@@ -3338,4 +3341,3 @@ char *input_CreateFilename( vlc_object_t *p_obj, const char *psz_path, const cha
return psz_file;
}
}
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