vlc_mutex_t *p_lock; /* Lock to use when modifying the config */
vlc_bool_t b_dirty; /* Dirty flag to indicate a config change */
vlc_bool_t b_advanced; /* Flag to indicate an advanced option */
+ vlc_bool_t b_internal; /* Flag to indicate option is not to be shows */
/* Original option values */
char *psz_value_orig;
action_text; \
p_config[i_config].i_action++;
+#define change_internal() \
+ p_config[i_config].b_internal = VLC_TRUE;
+
#define change_autosave() \
p_config[i_config].b_autosave = VLC_TRUE;
static module_config_t config_end = { \
CONFIG_HINT_END, NULL, NULL, 0, NULL, NULL, NULL, 0, 0., 0, 0, \
0., 0., NULL, NULL, NULL, NULL, NULL, 0, NULL, NULL, 0, NULL, \
- VLC_FALSE, NULL, VLC_FALSE, VLC_FALSE, NULL, 0, 0., NULL, 0, 0., \
- VLC_FALSE \
+ VLC_FALSE, NULL, VLC_FALSE, VLC_FALSE, VLC_FALSE, NULL, 0, 0., \
+ NULL, 0, 0., VLC_FALSE \
}; \
STORE_SYMBOLS; \
p_module->b_submodule = VLC_FALSE; \
add_integer( "cdda-caching", DEFAULT_PTS_DELAY / 1000, NULL, CACHING_TEXT,
CACHING_LONGTEXT, VLC_TRUE );
add_bool( "cdda-separate-tracks", VLC_TRUE, NULL, NULL, NULL, VLC_TRUE );
+ change_internal();
add_integer( "cdda-track", -1 , NULL, NULL, NULL, VLC_TRUE );
+ change_internal();
add_string( "cddb-server", "freedb.freedb.org", NULL,
N_( "CDDB Server" ), N_( "Address of the CDDB server to use." ),
VLC_TRUE );
default:
{
VLCConfigControl *o_control = nil;
+ if( p_item->b_internal == VLC_TRUE )
+ {
+ break;
+ }
o_control = [VLCConfigControl newControl:p_item
withView:o_view];
if( o_control != nil )
p_item->i_type == CONFIG_SUBCATEGORY ) )
break;
+ if( p_item->b_internal == VLC_TRUE ) continue;
+
ConfigControl *control =
CreateConfigControl( VLC_OBJECT(p_intf),
p_item, config_window );