Changeset 1bccb7df0b792afdb9107d5da8d10a174d45778c
- Timestamp:
- 01/23/06 20:09:22
(3 years ago)
- Author:
- Clément Stenac <zorglub@videolan.org>
- git-committer:
- Clément Stenac <zorglub@videolan.org> 1138043362 +0000
- git-parent:
[3814df3b05159f91a38b1ed240fb623efaa2c917]
- git-author:
- Clément Stenac <zorglub@videolan.org> 1138043362 +0000
- Message:
Add global options for netsync and showintf and hide them from interface (Closes:#508)
-
Files:
-
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
| r2cb472d |
r1bccb7d |
|
| 66 | 66 | |
|---|
| 67 | 67 | vlc_module_begin(); |
|---|
| 68 | | set_shortname( _("Netsync")); |
|---|
| | 68 | set_shortname( _("Network Sync")); |
|---|
| 69 | 69 | set_description( _("Network synchronisation") ); |
|---|
| 70 | | set_category( CAT_INTERFACE ); |
|---|
| 71 | | set_subcategory( SUBCAT_INTERFACE_CONTROL ); |
|---|
| | 70 | set_category( CAT_ADVANCED ); |
|---|
| | 71 | set_subcategory( SUBCAT_ADVANCED_MISC ); |
|---|
| 72 | 72 | |
|---|
| 73 | 73 | add_bool( "netsync-master", 0, NULL, |
|---|
| … | … | |
| 96 | 96 | { |
|---|
| 97 | 97 | intf_thread_t *p_intf = (intf_thread_t*)p_this; |
|---|
| 98 | | |
|---|
| 99 | | msg_Info( p_intf, "Using the netsync interface module..." ); |
|---|
| 100 | 98 | |
|---|
| 101 | 99 | p_intf->p_sys = malloc( sizeof( intf_sys_t ) ); |
|---|
| r2cb472d |
r1bccb7d |
|
| 65 | 65 | vlc_module_begin(); |
|---|
| 66 | 66 | set_shortname( "Showintf" ); |
|---|
| 67 | | set_category( CAT_INTERFACE ); |
|---|
| 68 | | set_subcategory( SUBCAT_INTERFACE_CONTROL ); |
|---|
| 69 | 67 | add_integer( "showintf-threshold", 10, NULL, THRESHOLD_TEXT, THRESHOLD_LONGTEXT, VLC_TRUE ); |
|---|
| 70 | | set_description( _("Interface showing control interface") ); |
|---|
| | 68 | set_description( _("Show interface with mouse") ); |
|---|
| 71 | 69 | |
|---|
| 72 | 70 | set_capability( "interface", 0 ); |
|---|
| ra1e597b |
r1bccb7d |
|
| 785 | 785 | char *psz_logmode = "logmode=syslog"; |
|---|
| 786 | 786 | AddIntfInternal( 0, "logger", VLC_FALSE, VLC_FALSE, 1, &psz_logmode ); |
|---|
| | 787 | } |
|---|
| | 788 | |
|---|
| | 789 | if( config_GetInt( p_vlc, "show-intf" ) == 1 ) |
|---|
| | 790 | { |
|---|
| | 791 | VLC_AddIntf( 0, "showintf", VLC_FALSE, VLC_FALSE ); |
|---|
| | 792 | } |
|---|
| | 793 | |
|---|
| | 794 | if( config_GetInt( p_vlc, "network-synchronisation") == 1 ) |
|---|
| | 795 | { |
|---|
| | 796 | VLC_AddIntf( 0, "netsync", VLC_FALSE, VLC_FALSE ); |
|---|
| 787 | 797 | } |
|---|
| 788 | 798 | |
|---|
| ra1e597b |
r1bccb7d |
|
| 101 | 101 | "never touch.") |
|---|
| 102 | 102 | |
|---|
| | 103 | #define SHOWINTF_TEXT N_("Show interface with mouse") |
|---|
| | 104 | #define SHOWINTF_LONGTEXT N_( \ |
|---|
| | 105 | "If this enabled, the interface will be shown when you move the mouse to "\ |
|---|
| | 106 | "the edge of the screen in fullscreen mode." ) |
|---|
| | 107 | |
|---|
| 103 | 108 | #define AOUT_CAT_LONGTEXT N_( \ |
|---|
| 104 | 109 | "These options allow you to modify the behavior of the audio " \ |
|---|
| … | … | |
| 345 | 350 | "Allows you to enable/disable the input clock synchronisation for " \ |
|---|
| 346 | 351 | "real-time sources.") |
|---|
| | 352 | |
|---|
| | 353 | #define NETSYNC_TEXT N_("Network synchronisation" ) |
|---|
| | 354 | #define NETSYNC_LONGTEXT N_( "This allows you to remotely " \ |
|---|
| | 355 | "synchronise clocks for server and client. The detailed settings " \ |
|---|
| | 356 | "are available in Advanced / Others / Network Sync" ) |
|---|
| 347 | 357 | |
|---|
| 348 | 358 | static int pi_clock_values[] = { -1, 0, 1 }; |
|---|
| … | … | |
| 1257 | 1267 | change_integer_list( pi_clock_values, ppsz_clock_descriptions, 0 ); |
|---|
| 1258 | 1268 | |
|---|
| | 1269 | add_bool( "network-synchronisation", VLC_FALSE, NULL, NETSYNC_TEXT, |
|---|
| | 1270 | NETSYNC_LONGTEXT, VLC_TRUE ); |
|---|
| | 1271 | |
|---|
| 1259 | 1272 | /* Decoder options */ |
|---|
| 1260 | 1273 | add_category_hint( N_("Decoders"), CODEC_CAT_LONGTEXT , VLC_TRUE ); |
|---|
| … | … | |
| 1415 | 1428 | set_subcategory( SUBCAT_INTERFACE_GENERAL ); |
|---|
| 1416 | 1429 | add_category_hint( N_("Interface"), INTF_CAT_LONGTEXT , VLC_FALSE ); |
|---|
| 1417 | | set_section ( N_("Interface module" ), NULL ); |
|---|
| | 1430 | set_section ( N_("Interfaces" ), NULL ); |
|---|
| 1418 | 1431 | add_module_cat( "intf", SUBCAT_INTERFACE_GENERAL, NULL, NULL, INTF_TEXT, |
|---|
| 1419 | 1432 | INTF_LONGTEXT, VLC_FALSE ); |
|---|
| 1420 | 1433 | change_short('I'); |
|---|
| 1421 | 1434 | |
|---|
| 1422 | | set_section ( N_("Extra interface modules" ), NULL ); |
|---|
| 1423 | 1435 | add_module_list_cat( "extraintf", SUBCAT_INTERFACE_GENERAL, |
|---|
| 1424 | 1436 | NULL, NULL, EXTRAINTF_TEXT, |
|---|
| … | … | |
| 1437 | 1449 | add_bool( "advanced", 0, NULL, ADVANCED_TEXT, ADVANCED_LONGTEXT, |
|---|
| 1438 | 1450 | VLC_FALSE ); |
|---|
| | 1451 | |
|---|
| | 1452 | add_bool( "show-intf", VLC_FALSE, NULL, SHOWINTF_TEXT, SHOWINTF_LONGTEXT, |
|---|
| | 1453 | VLC_FALSE ); |
|---|
| 1439 | 1454 | |
|---|
| 1440 | 1455 | set_subcategory( SUBCAT_INTERFACE_CONTROL ); |
|---|