Changeset 5ffe7e0054f5483e898ca3945762dfe1f8959581

Show
Ignore:
Timestamp:
12/06/07 16:33:45 (9 months ago)
Author:
Jean-Paul Saman <jpsaman@videolan.org>
git-committer:
Jean-Paul Saman <jpsaman@videolan.org> 1196955225 +0000
git-parent:

[2a40307cee22c2eaac173647a21c617da5560d75]

git-author:
Jean-Paul Saman <jpsaman@videolan.org> 1196955225 +0000
Message:

Don't call input_ChangeState() constantly while being in error state, because it triggers callbacks at each call. This can result in a busy rc interface.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • src/input/input.c

    rcedd80b r5ffe7e0  
    836836                /* Create a new one */ 
    837837                p_input->p->p_sout = sout_NewInstance( p_input, psz ); 
    838  
    839838                if( !p_input->p->p_sout ) 
    840839                { 
     
    12541253static void Error( input_thread_t *p_input ) 
    12551254{ 
     1255    input_ChangeState( p_input, ERROR_S ); 
    12561256    while( !p_input->b_die ) 
    12571257    { 
    12581258        /* Sleep a while */ 
    1259         input_ChangeState( p_input, ERROR_S ); 
    12601259        msleep( INPUT_IDLE_SLEEP ); 
    12611260    }