]> git.sesse.net Git - vlc/commitdiff
Permit counter stat update per frame (appears to have no or little performance impact).
authorMark Moriarty <markfm@videolan.org>
Sat, 1 Mar 2008 00:21:04 +0000 (00:21 +0000)
committerMark Moriarty <markfm@videolan.org>
Sat, 1 Mar 2008 00:21:04 +0000 (00:21 +0000)
src/video_output/video_output.c

index b17bce388fee385f8d97d895f0be8f5ac6f245ca..875e8bb900468ff2764b60efe3129189ac25cce9 100644 (file)
@@ -784,8 +784,6 @@ static void RunThread( vout_thread_t *p_vout)
         }
 
         i_loops++;
-        if( i_loops % 20 == 0 )
-        {
             if( !p_input )
             {
                 p_input = vlc_object_find( p_vout, VLC_OBJECT_INPUT,
@@ -802,7 +800,6 @@ static void RunThread( vout_thread_t *p_vout)
                 i_displayed = i_lost = 0;
                 vlc_mutex_unlock( &p_input->p->counters.counters_lock );
             }
-        }
 #if 0
         p_vout->c_loops++;
         if( !(p_vout->c_loops % VOUT_STATS_NB_LOOPS) )