Changeset e512e5bec6c52fc6c033bba37ca7b1f5e2dd6061
- 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
| r6c0ceeb |
re512e5b |
|
| 2037 | 2037 | } |
|---|
| 2038 | 2038 | } |
|---|
| | 2039 | |
|---|
| | 2040 | if( var_GetInteger( p_input, "clock-synchro" ) != -1 ) |
|---|
| | 2041 | in->b_can_pace_control = !var_GetInteger( p_input, "clock-synchro" ); |
|---|
| | 2042 | |
|---|
| 2039 | 2043 | free( psz_dup ); |
|---|
| 2040 | 2044 | return VLC_SUCCESS; |
|---|
| … | … | |
| 2312 | 2316 | var_Set( p_input, psz_name, val ); |
|---|
| 2313 | 2317 | |
|---|
| 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") ); |
|---|
| 2315 | 2320 | |
|---|
| 2316 | 2321 | cleanup: |
|---|
| r236ca7a |
re512e5b |
|
| 432 | 432 | |
|---|
| 433 | 433 | 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); |
|---|
| 434 | 435 | |
|---|
| 435 | 436 | var_Create( p_input, "seekable", VLC_VAR_BOOL ); |
|---|
| r236ca7a |
re512e5b |
|
| 288 | 288 | "When using the PVR input (or a very irregular source), you should " \ |
|---|
| 289 | 289 | "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.") |
|---|
| | 295 | static int pi_clock_values[] = { -1, 0, 1 }; |
|---|
| | 296 | static char *ppsz_clock_descriptions[] = |
|---|
| | 297 | { N_("Default"), N_("Disable"), N_("Enable") }; |
|---|
| 290 | 298 | |
|---|
| 291 | 299 | #define SERVER_PORT_TEXT N_("UDP port") |
|---|
| … | … | |
| 1063 | 1071 | add_integer( "cr-average", 40, NULL, CR_AVERAGE_TEXT, |
|---|
| 1064 | 1072 | 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 ); |
|---|
| 1065 | 1076 | |
|---|
| 1066 | 1077 | /* Decoder options */ |
|---|