Changeset bbc37b53fbf6ad9210de17a8166aa245bbbbef69

Show
Ignore:
Timestamp:
06/16/08 11:47:09 (2 months ago)
Author:
Pierre d'Herbemont <pdherbemont@videolan.org>
git-committer:
Pierre d'Herbemont <pdherbemont@videolan.org> 1213609629 +0200
git-parent:

[af28383a4e362803402e2d3f367e8c8f1a5bce10]

git-author:
Pierre d'Herbemont <pdherbemont@videolan.org> 1213609505 +0200
Message:

input: Make sure we send input state changes events. (Should fix the non sending of a play event reported by Rov Juvano).

Files:

Legend:

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

    r1a7f1a4 rbbc37b5  
    15511551 
    15521552                /* Switch to play */ 
    1553                 p_input->i_state = PLAYING_S; 
    1554                 val.i_int = PLAYING_S; 
    1555                 var_Change( p_input, "state", VLC_VAR_SETVALUE, &val, NULL ); 
     1553                input_ChangeState( p_input, PLAYING_S); 
    15561554 
    15571555                /* */ 
     
    15621560                     p_input->p->b_can_pause ) 
    15631561            { 
    1564                 int i_ret
     1562                int i_ret, state
    15651563                if( p_input->p->input.p_access ) 
    15661564                    i_ret = access_Control( p_input->p->input.p_access, 
     
    15751573                { 
    15761574                    msg_Warn( p_input, "cannot set pause state" ); 
    1577                     val.i_int = p_input->i_state; 
     1575                    state = p_input->i_state; 
    15781576                } 
    15791577                else 
    15801578                { 
    1581                     val.i_int = PAUSE_S; 
     1579                    state = PAUSE_S; 
    15821580                } 
    15831581 
    15841582                /* Switch to new state */ 
    1585                 p_input->i_state = val.i_int; 
    1586                 var_Change( p_input, "state", VLC_VAR_SETVALUE, &val, NULL ); 
     1583                input_ChangeState( p_input, state); 
    15871584 
    15881585                /* */ 
     
    15951592 
    15961593                /* Correct "state" value */ 
    1597                 val.i_int = p_input->i_state; 
    1598                 var_Change( p_input, "state", VLC_VAR_SETVALUE, &val, NULL ); 
     1594                input_ChangeState( p_input, p_input->i_state ); 
    15991595            } 
    16001596            else if( val.i_int != PLAYING_S && val.i_int != PAUSE_S )