[vlc-devel] commit: Remove change_unsafe() no-op. (Antoine Cellerier )

git version control git at videolan.org
Mon Sep 22 14:37:26 CEST 2008


vlc | branch: master | Antoine Cellerier <dionoea at videolan.org> | Mon Sep 22 14:40:39 2008 +0200| [6e41ca0135153181e3a922f0347154c4b83bac0e] | committer: Antoine Cellerier 

Remove change_unsafe() no-op.

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=6e41ca0135153181e3a922f0347154c4b83bac0e
---

 include/vlc_plugin.h              |    2 --
 modules/access_filter/timeshift.c |    1 -
 modules/audio_output/file.c       |    1 -
 modules/demux/demuxdump.c         |    1 -
 modules/demux/ts.c                |    1 -
 modules/misc/logger.c             |    1 -
 modules/stream_out/es.c           |    3 ---
 modules/stream_out/rtp.c          |    1 -
 modules/stream_out/standard.c     |    1 -
 src/libvlc-module.c               |    2 --
 10 files changed, 0 insertions(+), 14 deletions(-)

diff --git a/include/vlc_plugin.h b/include/vlc_plugin.h
index b98cfd4..5ed2297 100644
--- a/include/vlc_plugin.h
+++ b/include/vlc_plugin.h
@@ -445,8 +445,6 @@ enum vlc_config_properties
 #define change_unsaveable() \
     vlc_config_set (p_config, VLC_CONFIG_VOLATILE);
 
-#define change_unsafe() (void)0; /* no-op */
-
 #define change_safe() \
     vlc_config_set (p_config, VLC_CONFIG_SAFE);
 
diff --git a/modules/access_filter/timeshift.c b/modules/access_filter/timeshift.c
index 2c0082e..a1e353a 100644
--- a/modules/access_filter/timeshift.c
+++ b/modules/access_filter/timeshift.c
@@ -73,7 +73,6 @@ vlc_module_begin();
     add_integer( "timeshift-granularity", 50, NULL, GRANULARITY_TEXT,
                  GRANULARITY_LONGTEXT, true );
     add_directory( "timeshift-dir", 0, 0, DIR_TEXT, DIR_LONGTEXT, false );
-        change_unsafe();
     add_bool( "timeshift-force", false, NULL, FORCE_TEXT, FORCE_LONGTEXT,
               false );
 vlc_module_end();
diff --git a/modules/audio_output/file.c b/modules/audio_output/file.c
index 65b0578..ff07599 100644
--- a/modules/audio_output/file.c
+++ b/modules/audio_output/file.c
@@ -122,7 +122,6 @@ vlc_module_begin();
                  CHANNELS_TEXT, CHANNELS_LONGTEXT, true );
     add_file( "audiofile-file", "audiofile.wav", NULL, FILE_TEXT,
               FILE_LONGTEXT, false );
-        change_unsafe();
     add_bool( "audiofile-wav", 1, NULL, WAV_TEXT, WAV_LONGTEXT, true );
 
     set_capability( "audio output", 0 );
diff --git a/modules/demux/demuxdump.c b/modules/demux/demuxdump.c
index 2960807..1dd6773 100644
--- a/modules/demux/demuxdump.c
+++ b/modules/demux/demuxdump.c
@@ -57,7 +57,6 @@ vlc_module_begin();
     set_capability( "demux", 0 );
     add_file( "demuxdump-file", "stream-demux.dump", NULL, FILE_TEXT,
               FILE_LONGTEXT, false );
-        change_unsafe();
     add_bool( "demuxdump-append", 0, NULL, APPEND_TEXT, APPEND_LONGTEXT,
               false );
     set_callbacks( Open, Close );
diff --git a/modules/demux/ts.c b/modules/demux/ts.c
index 5eba00e..3549913 100644
--- a/modules/demux/ts.c
+++ b/modules/demux/ts.c
@@ -172,7 +172,6 @@ vlc_module_begin();
     add_bool( "ts-silent", 0, NULL, SILENT_TEXT, SILENT_LONGTEXT, true );
 
     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_integer( "ts-dump-size", 16384, NULL, DUMPSIZE_TEXT,
                  DUMPSIZE_LONGTEXT, true );
diff --git a/modules/misc/logger.c b/modules/misc/logger.c
index 00b9d39..7d33f41 100644
--- a/modules/misc/logger.c
+++ b/modules/misc/logger.c
@@ -141,7 +141,6 @@ vlc_module_begin();
 
     add_file( "logfile", NULL, NULL,
              N_("Log filename"), N_("Specify the log filename."), false );
-        change_unsafe();
     add_string( "logmode", "text", NULL, LOGMODE_TEXT, LOGMODE_LONGTEXT,
                 false );
         change_string_list( mode_list, mode_list_text, 0 );
diff --git a/modules/stream_out/es.c b/modules/stream_out/es.c
index e390def..03cb794 100644
--- a/modules/stream_out/es.c
+++ b/modules/stream_out/es.c
@@ -89,7 +89,6 @@ vlc_module_begin();
                 MUX_LONGTEXT, true );
     add_string( SOUT_CFG_PREFIX "dst", "", NULL, DEST_TEXT,
                 DEST_LONGTEXT, true );
-        change_unsafe();
 
     set_section( N_("Audio"), NULL );
     add_string( SOUT_CFG_PREFIX "access-audio", "", NULL, ACCESSA_TEXT,
@@ -98,7 +97,6 @@ vlc_module_begin();
                 MUXA_LONGTEXT, true );
     add_string( SOUT_CFG_PREFIX "dst-audio", "", NULL, DESTA_TEXT,
                 DESTA_LONGTEXT, true );
-        change_unsafe();
 
     set_section( N_("Video"), NULL );
     add_string( SOUT_CFG_PREFIX "access-video", "", NULL, ACCESSV_TEXT,
@@ -107,7 +105,6 @@ vlc_module_begin();
                 MUXV_LONGTEXT, true );
     add_string( SOUT_CFG_PREFIX "dst-video", "", NULL, DESTV_TEXT,
                 DESTV_LONGTEXT, true );
-        change_unsafe();
 
     set_callbacks( Open, Close );
 vlc_module_end();
diff --git a/modules/stream_out/rtp.c b/modules/stream_out/rtp.c
index 3a1017b..6659b20 100644
--- a/modules/stream_out/rtp.c
+++ b/modules/stream_out/rtp.c
@@ -167,7 +167,6 @@ vlc_module_begin();
 
     add_string( SOUT_CFG_PREFIX "dst", "", NULL, DEST_TEXT,
                 DEST_LONGTEXT, true );
-        change_unsafe();
     add_string( SOUT_CFG_PREFIX "sdp", "", NULL, SDP_TEXT,
                 SDP_LONGTEXT, true );
     add_string( SOUT_CFG_PREFIX "mux", "", NULL, MUX_TEXT,
diff --git a/modules/stream_out/standard.c b/modules/stream_out/standard.c
index 7262eab..f444646 100644
--- a/modules/stream_out/standard.c
+++ b/modules/stream_out/standard.c
@@ -115,7 +115,6 @@ vlc_module_begin();
                 BIND_LONGTEXT, false );
     add_string( SOUT_CFG_PREFIX "path", "", NULL, PATH_TEXT,
                 PATH_LONGTEXT, false );
-        change_unsafe();
 
     add_bool( SOUT_CFG_PREFIX "sap", false, NULL, SAP_TEXT, SAP_LONGTEXT,
               true );
diff --git a/src/libvlc-module.c b/src/libvlc-module.c
index 464239c..76c7ca0 100644
--- a/src/libvlc-module.c
+++ b/src/libvlc-module.c
@@ -1551,7 +1551,6 @@ vlc_module_begin();
     set_section( N_("Snapshot") , NULL );
     add_directory( "snapshot-path", NULL, NULL, SNAP_PATH_TEXT,
                    SNAP_PATH_LONGTEXT, false );
-        change_unsafe();
     add_string( "snapshot-prefix", "vlcsnap-", NULL, SNAP_PREFIX_TEXT,
                    SNAP_PREFIX_LONGTEXT, false );
     add_string( "snapshot-format", "png", NULL, SNAP_FORMAT_TEXT,
@@ -1877,7 +1876,6 @@ vlc_module_begin();
     add_directory( "plugin-path", NULL, NULL, PLUGIN_PATH_TEXT,
                    PLUGIN_PATH_LONGTEXT, true );
         change_need_restart();
-        change_unsafe();
 
     set_section( N_("Performance options"), NULL );
     add_bool( "minimize-threads", 0, NULL, MINIMIZE_THREADS_TEXT,




More information about the vlc-devel mailing list