Commit 0cb5cfbd authored by Mark Moriarty's avatar Mark Moriarty

Permit counter stat update per frame (appears to have no or little performance impact).

parent 192a1299
...@@ -784,8 +784,6 @@ static void RunThread( vout_thread_t *p_vout) ...@@ -784,8 +784,6 @@ static void RunThread( vout_thread_t *p_vout)
} }
i_loops++; i_loops++;
if( i_loops % 20 == 0 )
{
if( !p_input ) if( !p_input )
{ {
p_input = vlc_object_find( p_vout, VLC_OBJECT_INPUT, p_input = vlc_object_find( p_vout, VLC_OBJECT_INPUT,
...@@ -802,7 +800,6 @@ static void RunThread( vout_thread_t *p_vout) ...@@ -802,7 +800,6 @@ static void RunThread( vout_thread_t *p_vout)
i_displayed = i_lost = 0; i_displayed = i_lost = 0;
vlc_mutex_unlock( &p_input->p->counters.counters_lock ); vlc_mutex_unlock( &p_input->p->counters.counters_lock );
} }
}
#if 0 #if 0
p_vout->c_loops++; p_vout->c_loops++;
if( !(p_vout->c_loops % VOUT_STATS_NB_LOOPS) ) if( !(p_vout->c_loops % VOUT_STATS_NB_LOOPS) )
......
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