[vlc-commits] commit: add_savefile: remove callback parameter ( Rémi Denis-Courmont )

git at videolan.org git at videolan.org
Fri Oct 22 20:12:07 CEST 2010


vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Fri Oct 22 20:54:03 2010 +0300| [cecde7fc23d3ec69f5d096696b3b92827c227ffd] | committer: Rémi Denis-Courmont 

add_savefile: remove callback parameter

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

 include/vlc_plugin.h        |    2 +-
 modules/audio_output/file.c |    2 +-
 modules/demux/demuxdump.c   |    2 +-
 modules/demux/ts.c          |    2 +-
 modules/misc/logger.c       |    2 +-
 src/libvlc-module.c         |    2 +-
 6 files changed, 6 insertions(+), 6 deletions(-)

diff --git a/include/vlc_plugin.h b/include/vlc_plugin.h
index d2f50a8..4ab2768 100644
--- a/include/vlc_plugin.h
+++ b/include/vlc_plugin.h
@@ -311,7 +311,7 @@ enum vlc_module_properties
     add_string_inner( CONFIG_ITEM_LOADFILE, name, text, longtext, advc, \
                       value )
 
-#define add_savefile( name, value, p_callback, text, longtext, advc ) \
+#define add_savefile( name, value, text, longtext, advc ) \
     add_string_inner( CONFIG_ITEM_SAVEFILE, name, text, longtext, advc, \
                       value )
 
diff --git a/modules/audio_output/file.c b/modules/audio_output/file.c
index d761afb..9a622de 100644
--- a/modules/audio_output/file.c
+++ b/modules/audio_output/file.c
@@ -118,7 +118,7 @@ vlc_module_begin ()
         change_string_list( format_list, 0, 0 )
     add_integer( "audiofile-channels", 0, NULL,
                  CHANNELS_TEXT, CHANNELS_LONGTEXT, true )
-    add_savefile( "audiofile-file", "audiofile.wav", NULL, FILE_TEXT,
+    add_savefile( "audiofile-file", "audiofile.wav", FILE_TEXT,
                   FILE_LONGTEXT, false )
     add_bool( "audiofile-wav", true, NULL, WAV_TEXT, WAV_LONGTEXT, true )
 
diff --git a/modules/demux/demuxdump.c b/modules/demux/demuxdump.c
index 32f73a4..c48e53e 100644
--- a/modules/demux/demuxdump.c
+++ b/modules/demux/demuxdump.c
@@ -53,7 +53,7 @@ vlc_module_begin ()
     set_subcategory( SUBCAT_INPUT_DEMUX )
     set_description( N_("File dumper") )
     set_capability( "demux", 0 )
-    add_savefile( "demuxdump-file", "stream-demux.dump", NULL, FILE_TEXT,
+    add_savefile( "demuxdump-file", "stream-demux.dump", FILE_TEXT,
                   FILE_LONGTEXT, false )
     add_bool( "demuxdump-append", false, NULL, APPEND_TEXT, APPEND_LONGTEXT,
               false )
diff --git a/modules/demux/ts.c b/modules/demux/ts.c
index aa28e97..1d4bdfd 100644
--- a/modules/demux/ts.c
+++ b/modules/demux/ts.c
@@ -176,7 +176,7 @@ vlc_module_begin ()
     add_integer( "ts-csa-pkt", 188, NULL, CPKT_TEXT, CPKT_LONGTEXT, true )
     add_bool( "ts-silent", false, NULL, SILENT_TEXT, SILENT_LONGTEXT, true )
 
-    add_savefile( "ts-dump-file", NULL, NULL, TSDUMP_TEXT, TSDUMP_LONGTEXT, false )
+    add_savefile( "ts-dump-file", NULL, TSDUMP_TEXT, TSDUMP_LONGTEXT, false )
     add_bool( "ts-dump-append", false, 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 d80e440..31bd800 100644
--- a/modules/misc/logger.c
+++ b/modules/misc/logger.c
@@ -165,7 +165,7 @@ vlc_module_begin ()
     set_category( CAT_ADVANCED )
     set_subcategory( SUBCAT_ADVANCED_MISC )
 
-    add_savefile( "logfile", NULL, NULL,
+    add_savefile( "logfile", NULL,
              N_("Log filename"), N_("Specify the log filename."), false )
     add_string( "logmode", "text", LOGMODE_TEXT, LOGMODE_LONGTEXT,
                 false )
diff --git a/src/libvlc-module.c b/src/libvlc-module.c
index 9735fb7..352fd30 100644
--- a/src/libvlc-module.c
+++ b/src/libvlc-module.c
@@ -1580,7 +1580,7 @@ const char vlc_usage[] = N_(
  * add_string( option_name, value, N_(text), N_(longtext),
                b_advanced_option )
  * add_loadfile( option_name, psz_value, p_callback, N_(text), N_(longtext) )
- * add_savefile( option_name, psz_value, p_callback, N_(text), N_(longtext) )
+ * add_savefile( option_name, psz_value, N_(text), N_(longtext) )
  * add_module( option_name, psz_value, i_capability, p_callback,
  *             N_(text), N_(longtext) )
  * add_integer( option_name, i_value, p_callback, N_(text), N_(longtext),



More information about the vlc-commits mailing list