Commit 6e41ca01 authored by Antoine Cellerier's avatar Antoine Cellerier

Remove change_unsafe() no-op.

parent 6d914307
...@@ -445,8 +445,6 @@ enum vlc_config_properties ...@@ -445,8 +445,6 @@ enum vlc_config_properties
#define change_unsaveable() \ #define change_unsaveable() \
vlc_config_set (p_config, VLC_CONFIG_VOLATILE); vlc_config_set (p_config, VLC_CONFIG_VOLATILE);
#define change_unsafe() (void)0; /* no-op */
#define change_safe() \ #define change_safe() \
vlc_config_set (p_config, VLC_CONFIG_SAFE); vlc_config_set (p_config, VLC_CONFIG_SAFE);
......
...@@ -73,7 +73,6 @@ vlc_module_begin(); ...@@ -73,7 +73,6 @@ vlc_module_begin();
add_integer( "timeshift-granularity", 50, NULL, GRANULARITY_TEXT, add_integer( "timeshift-granularity", 50, NULL, GRANULARITY_TEXT,
GRANULARITY_LONGTEXT, true ); GRANULARITY_LONGTEXT, true );
add_directory( "timeshift-dir", 0, 0, DIR_TEXT, DIR_LONGTEXT, false ); add_directory( "timeshift-dir", 0, 0, DIR_TEXT, DIR_LONGTEXT, false );
change_unsafe();
add_bool( "timeshift-force", false, NULL, FORCE_TEXT, FORCE_LONGTEXT, add_bool( "timeshift-force", false, NULL, FORCE_TEXT, FORCE_LONGTEXT,
false ); false );
vlc_module_end(); vlc_module_end();
......
...@@ -122,7 +122,6 @@ vlc_module_begin(); ...@@ -122,7 +122,6 @@ vlc_module_begin();
CHANNELS_TEXT, CHANNELS_LONGTEXT, true ); CHANNELS_TEXT, CHANNELS_LONGTEXT, true );
add_file( "audiofile-file", "audiofile.wav", NULL, FILE_TEXT, add_file( "audiofile-file", "audiofile.wav", NULL, FILE_TEXT,
FILE_LONGTEXT, false ); FILE_LONGTEXT, false );
change_unsafe();
add_bool( "audiofile-wav", 1, NULL, WAV_TEXT, WAV_LONGTEXT, true ); add_bool( "audiofile-wav", 1, NULL, WAV_TEXT, WAV_LONGTEXT, true );
set_capability( "audio output", 0 ); set_capability( "audio output", 0 );
......
...@@ -57,7 +57,6 @@ vlc_module_begin(); ...@@ -57,7 +57,6 @@ vlc_module_begin();
set_capability( "demux", 0 ); set_capability( "demux", 0 );
add_file( "demuxdump-file", "stream-demux.dump", NULL, FILE_TEXT, add_file( "demuxdump-file", "stream-demux.dump", NULL, FILE_TEXT,
FILE_LONGTEXT, false ); FILE_LONGTEXT, false );
change_unsafe();
add_bool( "demuxdump-append", 0, NULL, APPEND_TEXT, APPEND_LONGTEXT, add_bool( "demuxdump-append", 0, NULL, APPEND_TEXT, APPEND_LONGTEXT,
false ); false );
set_callbacks( Open, Close ); set_callbacks( Open, Close );
......
...@@ -172,7 +172,6 @@ vlc_module_begin(); ...@@ -172,7 +172,6 @@ vlc_module_begin();
add_bool( "ts-silent", 0, NULL, SILENT_TEXT, SILENT_LONGTEXT, true ); add_bool( "ts-silent", 0, NULL, SILENT_TEXT, SILENT_LONGTEXT, true );
add_file( "ts-dump-file", NULL, NULL, TSDUMP_TEXT, TSDUMP_LONGTEXT, false ); add_file( "ts-dump-file", NULL, NULL, TSDUMP_TEXT, TSDUMP_LONGTEXT, false );
change_unsafe();
add_bool( "ts-dump-append", 0, NULL, APPEND_TEXT, APPEND_LONGTEXT, false ); add_bool( "ts-dump-append", 0, NULL, APPEND_TEXT, APPEND_LONGTEXT, false );
add_integer( "ts-dump-size", 16384, NULL, DUMPSIZE_TEXT, add_integer( "ts-dump-size", 16384, NULL, DUMPSIZE_TEXT,
DUMPSIZE_LONGTEXT, true ); DUMPSIZE_LONGTEXT, true );
......
...@@ -141,7 +141,6 @@ vlc_module_begin(); ...@@ -141,7 +141,6 @@ vlc_module_begin();
add_file( "logfile", NULL, NULL, add_file( "logfile", NULL, NULL,
N_("Log filename"), N_("Specify the log filename."), false ); N_("Log filename"), N_("Specify the log filename."), false );
change_unsafe();
add_string( "logmode", "text", NULL, LOGMODE_TEXT, LOGMODE_LONGTEXT, add_string( "logmode", "text", NULL, LOGMODE_TEXT, LOGMODE_LONGTEXT,
false ); false );
change_string_list( mode_list, mode_list_text, 0 ); change_string_list( mode_list, mode_list_text, 0 );
......
...@@ -89,7 +89,6 @@ vlc_module_begin(); ...@@ -89,7 +89,6 @@ vlc_module_begin();
MUX_LONGTEXT, true ); MUX_LONGTEXT, true );
add_string( SOUT_CFG_PREFIX "dst", "", NULL, DEST_TEXT, add_string( SOUT_CFG_PREFIX "dst", "", NULL, DEST_TEXT,
DEST_LONGTEXT, true ); DEST_LONGTEXT, true );
change_unsafe();
set_section( N_("Audio"), NULL ); set_section( N_("Audio"), NULL );
add_string( SOUT_CFG_PREFIX "access-audio", "", NULL, ACCESSA_TEXT, add_string( SOUT_CFG_PREFIX "access-audio", "", NULL, ACCESSA_TEXT,
...@@ -98,7 +97,6 @@ vlc_module_begin(); ...@@ -98,7 +97,6 @@ vlc_module_begin();
MUXA_LONGTEXT, true ); MUXA_LONGTEXT, true );
add_string( SOUT_CFG_PREFIX "dst-audio", "", NULL, DESTA_TEXT, add_string( SOUT_CFG_PREFIX "dst-audio", "", NULL, DESTA_TEXT,
DESTA_LONGTEXT, true ); DESTA_LONGTEXT, true );
change_unsafe();
set_section( N_("Video"), NULL ); set_section( N_("Video"), NULL );
add_string( SOUT_CFG_PREFIX "access-video", "", NULL, ACCESSV_TEXT, add_string( SOUT_CFG_PREFIX "access-video", "", NULL, ACCESSV_TEXT,
...@@ -107,7 +105,6 @@ vlc_module_begin(); ...@@ -107,7 +105,6 @@ vlc_module_begin();
MUXV_LONGTEXT, true ); MUXV_LONGTEXT, true );
add_string( SOUT_CFG_PREFIX "dst-video", "", NULL, DESTV_TEXT, add_string( SOUT_CFG_PREFIX "dst-video", "", NULL, DESTV_TEXT,
DESTV_LONGTEXT, true ); DESTV_LONGTEXT, true );
change_unsafe();
set_callbacks( Open, Close ); set_callbacks( Open, Close );
vlc_module_end(); vlc_module_end();
......
...@@ -167,7 +167,6 @@ vlc_module_begin(); ...@@ -167,7 +167,6 @@ vlc_module_begin();
add_string( SOUT_CFG_PREFIX "dst", "", NULL, DEST_TEXT, add_string( SOUT_CFG_PREFIX "dst", "", NULL, DEST_TEXT,
DEST_LONGTEXT, true ); DEST_LONGTEXT, true );
change_unsafe();
add_string( SOUT_CFG_PREFIX "sdp", "", NULL, SDP_TEXT, add_string( SOUT_CFG_PREFIX "sdp", "", NULL, SDP_TEXT,
SDP_LONGTEXT, true ); SDP_LONGTEXT, true );
add_string( SOUT_CFG_PREFIX "mux", "", NULL, MUX_TEXT, add_string( SOUT_CFG_PREFIX "mux", "", NULL, MUX_TEXT,
......
...@@ -115,7 +115,6 @@ vlc_module_begin(); ...@@ -115,7 +115,6 @@ vlc_module_begin();
BIND_LONGTEXT, false ); BIND_LONGTEXT, false );
add_string( SOUT_CFG_PREFIX "path", "", NULL, PATH_TEXT, add_string( SOUT_CFG_PREFIX "path", "", NULL, PATH_TEXT,
PATH_LONGTEXT, false ); PATH_LONGTEXT, false );
change_unsafe();
add_bool( SOUT_CFG_PREFIX "sap", false, NULL, SAP_TEXT, SAP_LONGTEXT, add_bool( SOUT_CFG_PREFIX "sap", false, NULL, SAP_TEXT, SAP_LONGTEXT,
true ); true );
......
...@@ -1551,7 +1551,6 @@ vlc_module_begin(); ...@@ -1551,7 +1551,6 @@ vlc_module_begin();
set_section( N_("Snapshot") , NULL ); set_section( N_("Snapshot") , NULL );
add_directory( "snapshot-path", NULL, NULL, SNAP_PATH_TEXT, add_directory( "snapshot-path", NULL, NULL, SNAP_PATH_TEXT,
SNAP_PATH_LONGTEXT, false ); SNAP_PATH_LONGTEXT, false );
change_unsafe();
add_string( "snapshot-prefix", "vlcsnap-", NULL, SNAP_PREFIX_TEXT, add_string( "snapshot-prefix", "vlcsnap-", NULL, SNAP_PREFIX_TEXT,
SNAP_PREFIX_LONGTEXT, false ); SNAP_PREFIX_LONGTEXT, false );
add_string( "snapshot-format", "png", NULL, SNAP_FORMAT_TEXT, add_string( "snapshot-format", "png", NULL, SNAP_FORMAT_TEXT,
...@@ -1877,7 +1876,6 @@ vlc_module_begin(); ...@@ -1877,7 +1876,6 @@ vlc_module_begin();
add_directory( "plugin-path", NULL, NULL, PLUGIN_PATH_TEXT, add_directory( "plugin-path", NULL, NULL, PLUGIN_PATH_TEXT,
PLUGIN_PATH_LONGTEXT, true ); PLUGIN_PATH_LONGTEXT, true );
change_need_restart(); change_need_restart();
change_unsafe();
set_section( N_("Performance options"), NULL ); set_section( N_("Performance options"), NULL );
add_bool( "minimize-threads", 0, NULL, MINIMIZE_THREADS_TEXT, add_bool( "minimize-threads", 0, NULL, MINIMIZE_THREADS_TEXT,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment