Changeset e41cdcc4acaf1c7d41a2ad9cfd467dcbe7ddeb1b

Show
Ignore:
Timestamp:
07/01/08 15:23:12 (1 year ago)
Author:
Pierre d'Herbemont <pdherbemont@videolan.org>
git-committer:
Pierre d'Herbemont <pdherbemont@videolan.org> 1199715792 +0000
git-parent:

[24653effadab954f68518f48fd36ffd6b968de4f]

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

src/input.c: Define and set the "can-pause" variable.

Files:

Legend:

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

    rbae7c73 re41cdcc  
    109109 *  - bookmarks 
    110110 *  - seekable (if you can seek, it doesn't say if 'bar display' has be shown or not, for that check position != 0.0) 
     111 *  - can-pause 
    111112 * * For intf callback upon changes 
    112113 *  - intf-change 
     
    22662267                            &in->b_can_pause ) ) 
    22672268            in->b_can_pause = VLC_FALSE; 
     2269        var_SetBool( p_input, "can-pause", in->b_can_pause ); 
    22682270 
    22692271        int ret = demux2_Control( in->p_demux, DEMUX_CAN_SEEK, 
     
    23622364            access2_Control( in->p_access, ACCESS_CAN_PAUSE, 
    23632365                             &in->b_can_pause ); 
     2366            var_SetBool( p_input, "can-pause", in->b_can_pause ); 
    23642367            access2_Control( in->p_access, ACCESS_CAN_SEEK, 
    23652368                             &val.b_bool ); 
  • src/input/var.c

    rb6c6094 re41cdcc  
    449449    val.b_bool = VLC_TRUE; /* Fixed later*/ 
    450450    var_Change( p_input, "seekable", VLC_VAR_SETVALUE, &val, NULL ); 
     451    var_Create( p_input, "can-pause", VLC_VAR_BOOL ); 
     452    val.b_bool = VLC_TRUE; /* Fixed later*/ 
     453    var_Change( p_input, "can-pause", VLC_VAR_SETVALUE, &val, NULL ); 
    451454 
    452455    /* */