Changeset e512e5bec6c52fc6c033bba37ca7b1f5e2dd6061

Show
Ignore:
Timestamp:
10/02/05 14:26:52 (4 years ago)
Author:
Gildas Bazin <gbazin@videolan.org>
git-committer:
Gildas Bazin <gbazin@videolan.org> 1108042012 +0000
git-parent:

[28a41f120a58aedf74ed3aaa95014bd47aeae28f]

git-author:
Gildas Bazin <gbazin@videolan.org> 1108042012 +0000
Message:

* src/libvlc.h, src/input/: new --clock-synchro option to enable/disable the input clock synchronisation algorithm.

Files:

Legend:

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

    r6c0ceeb re512e5b  
    20372037        } 
    20382038    } 
     2039 
     2040    if( var_GetInteger( p_input, "clock-synchro" ) != -1 ) 
     2041        in->b_can_pace_control = !var_GetInteger( p_input, "clock-synchro" ); 
     2042 
    20392043    free( psz_dup ); 
    20402044    return VLC_SUCCESS; 
     
    23122316    var_Set( p_input, psz_name, val ); 
    23132317 
    2314     msg_Dbg( p_input, "set input option: %s to %s", psz_name, psz_value ? psz_value : ( val.b_bool ? "true" : "false") ); 
     2318    msg_Dbg( p_input, "set input option: %s to %s", psz_name, 
     2319             psz_value ? psz_value : ( val.b_bool ? "true" : "false") ); 
    23152320 
    23162321  cleanup: 
  • src/input/var.c

    r236ca7a re512e5b  
    432432 
    433433    var_Create( p_input, "cr-average", VLC_VAR_INTEGER | VLC_VAR_DOINHERIT ); 
     434    var_Create( p_input, "clock-synchro", VLC_VAR_INTEGER | VLC_VAR_DOINHERIT); 
    434435 
    435436    var_Create( p_input, "seekable", VLC_VAR_BOOL ); 
  • src/libvlc.h

    r236ca7a re512e5b  
    288288    "When using the PVR input (or a very irregular source), you should " \ 
    289289    "set this to 10000.") 
     290 
     291#define CLOCK_SYNCHRO_TEXT N_("Clock synchronisation") 
     292#define CLOCK_SYNCHRO_LONGTEXT N_( \ 
     293    "Allows you to enable/disable the input clock synchronisation for " \ 
     294    "real-time sources.") 
     295static int pi_clock_values[] = { -1, 0, 1 }; 
     296static char *ppsz_clock_descriptions[] = 
     297{ N_("Default"), N_("Disable"), N_("Enable") }; 
    290298 
    291299#define SERVER_PORT_TEXT N_("UDP port") 
     
    10631071    add_integer( "cr-average", 40, NULL, CR_AVERAGE_TEXT, 
    10641072                 CR_AVERAGE_LONGTEXT, VLC_FALSE ); 
     1073    add_integer( "clock-synchro", -1, NULL, CLOCK_SYNCHRO_TEXT, 
     1074                 CLOCK_SYNCHRO_LONGTEXT, VLC_FALSE ); 
     1075        change_integer_list( pi_clock_values, ppsz_clock_descriptions, 0 ); 
    10651076 
    10661077    /* Decoder options */