Commit 3147cc20 authored by Rémi Duraffort's avatar Rémi Duraffort

add_bool wants booleans.

parent 857d04d7
......@@ -212,8 +212,8 @@ vlc_module_begin ()
/* dvb-device refers to a frontend within an adapter */
add_integer( "dvb-device", 0, NULL, DEVICE_TEXT, DEVICE_LONGTEXT,
true )
add_bool( "dvb-probe", 1, NULL, PROBE_TEXT, PROBE_LONGTEXT, true )
add_bool( "dvb-budget-mode", 0, NULL, BUDGET_TEXT, BUDGET_LONGTEXT,
add_bool( "dvb-probe", true, NULL, PROBE_TEXT, PROBE_LONGTEXT, true )
add_bool( "dvb-budget-mode", false, NULL, BUDGET_TEXT, BUDGET_LONGTEXT,
true )
# endif
......@@ -243,7 +243,7 @@ vlc_module_begin ()
true )
add_integer( "dvb-voltage", 13, NULL, VOLTAGE_TEXT, VOLTAGE_LONGTEXT,
true )
add_bool( "dvb-high-voltage", 0, NULL, HIGH_VOLTAGE_TEXT,
add_bool( "dvb-high-voltage", false, NULL, HIGH_VOLTAGE_TEXT,
HIGH_VOLTAGE_LONGTEXT, true )
add_integer( "dvb-tone", -1, NULL, TONE_TEXT, TONE_LONGTEXT,
true )
......
......@@ -207,15 +207,15 @@ vlc_module_begin ()
false )
add_integer( "dvb-inversion", 2, NULL, INVERSION_TEXT, INVERSION_LONGTEXT,
true )
add_bool( "dvb-probe", 1, NULL, PROBE_TEXT, PROBE_LONGTEXT, true )
add_bool( "dvb-budget-mode", 0, NULL, BUDGET_TEXT, BUDGET_LONGTEXT,
add_bool( "dvb-probe", true, NULL, PROBE_TEXT, PROBE_LONGTEXT, true )
add_bool( "dvb-budget-mode", false, NULL, BUDGET_TEXT, BUDGET_LONGTEXT,
true )
/* DVB-S (satellite) */
add_integer( "dvb-satno", 0, NULL, SATNO_TEXT, SATNO_LONGTEXT,
true )
add_integer( "dvb-voltage", 13, NULL, VOLTAGE_TEXT, VOLTAGE_LONGTEXT,
true )
add_bool( "dvb-high-voltage", 0, NULL, HIGH_VOLTAGE_TEXT,
add_bool( "dvb-high-voltage", false, NULL, HIGH_VOLTAGE_TEXT,
HIGH_VOLTAGE_LONGTEXT, true )
add_integer( "dvb-tone", -1, NULL, TONE_TEXT, TONE_LONGTEXT,
true )
......
......@@ -116,9 +116,9 @@ vlc_module_begin ()
add_string( "http-user-agent", COPYRIGHT_MESSAGE , NULL, AGENT_TEXT,
AGENT_LONGTEXT, true )
change_safe()
add_bool( "http-reconnect", 0, NULL, RECONNECT_TEXT,
add_bool( "http-reconnect", false, NULL, RECONNECT_TEXT,
RECONNECT_LONGTEXT, true )
add_bool( "http-continuous", 0, NULL, CONTINUOUS_TEXT,
add_bool( "http-continuous", false, NULL, CONTINUOUS_TEXT,
CONTINUOUS_LONGTEXT, true )
change_safe()
add_bool( "http-forward-cookies", true, NULL, FORWARD_COOKIES_TEXT,
......
......@@ -82,7 +82,7 @@ vlc_module_begin ()
add_integer( "mms-timeout", 5000, NULL, TIMEOUT_TEXT, TIMEOUT_LONGTEXT,
true )
add_bool( "mms-all", 0, NULL, ALL_TEXT, ALL_LONGTEXT, true )
add_bool( "mms-all", false, NULL, ALL_TEXT, ALL_LONGTEXT, true )
add_integer( "mms-maxbitrate", 0, NULL, BITRATE_TEXT, BITRATE_LONGTEXT ,
false )
add_string( "mmsh-proxy", NULL, NULL, PROXY_TEXT, PROXY_LONGTEXT,
......
......@@ -103,7 +103,7 @@ vlc_module_begin ()
N_("Number of CD blocks to get in a single read."),
true )
add_bool( MODULE_STRING "-PBC", 0, NULL,
add_bool( MODULE_STRING "-PBC", false, NULL,
N_("Use playback control?"),
N_("If VCD is authored with playback control, use it. "
"Otherwise we play by tracks."),
......@@ -116,7 +116,7 @@ vlc_module_begin ()
"the length of an entry."),
false )
add_bool( MODULE_STRING "-extended-info", 0, NULL,
add_bool( MODULE_STRING "-extended-info", false, NULL,
N_("Show extended VCD info?"),
N_("Show the maximum amount of information under Stream and "
"Media Info. Shows for example playback control navigation."),
......
......@@ -73,7 +73,7 @@ vlc_module_begin ()
set_subcategory( SUBCAT_SOUT_ACO )
add_shortcut( "file" )
add_shortcut( "stream" )
add_bool( SOUT_CFG_PREFIX "append", 0, NULL, APPEND_TEXT,APPEND_LONGTEXT,
add_bool( SOUT_CFG_PREFIX "append", false, NULL, APPEND_TEXT,APPEND_LONGTEXT,
true )
set_callbacks( Open, Close )
vlc_module_end ()
......
......@@ -87,9 +87,9 @@ vlc_module_begin ()
add_integer( "headphone-dim", 10, NULL, HEADPHONE_DIM_TEXT,
HEADPHONE_DIM_LONGTEXT, false )
add_bool( "headphone-compensate", 0, NULL, HEADPHONE_COMPENSATE_TEXT,
add_bool( "headphone-compensate", false, NULL, HEADPHONE_COMPENSATE_TEXT,
HEADPHONE_COMPENSATE_LONGTEXT, true )
add_bool( "headphone-dolby", 0, NULL, HEADPHONE_DOLBY_TEXT,
add_bool( "headphone-dolby", false, NULL, HEADPHONE_DOLBY_TEXT,
HEADPHONE_DOLBY_LONGTEXT, true )
set_capability( "audio filter", 0 )
......
......@@ -102,8 +102,8 @@ vlc_module_begin ()
set_description( N_("ATSC A/52 (AC-3) audio decoder") )
set_category( CAT_INPUT )
set_subcategory( SUBCAT_INPUT_ACODEC )
add_bool( "a52-dynrng", 1, NULL, DYNRNG_TEXT, DYNRNG_LONGTEXT, false )
add_bool( "a52-upmix", 0, NULL, UPMIX_TEXT, UPMIX_LONGTEXT, true )
add_bool( "a52-dynrng", true, NULL, DYNRNG_TEXT, DYNRNG_LONGTEXT, false )
add_bool( "a52-upmix", false, NULL, UPMIX_TEXT, UPMIX_LONGTEXT, true )
set_capability( "audio filter", 100 )
set_callbacks( Create, Destroy )
......
......@@ -93,7 +93,7 @@ vlc_module_begin ()
set_subcategory( SUBCAT_INPUT_ACODEC )
set_shortname( "DCA" )
set_description( N_("DTS Coherent Acoustics audio decoder") )
add_bool( "dts-dynrng", 1, NULL, DYNRNG_TEXT, DYNRNG_LONGTEXT, false )
add_bool( "dts-dynrng", true, NULL, DYNRNG_TEXT, DYNRNG_LONGTEXT, false )
set_capability( "audio filter", 100 )
set_callbacks( Create, Destroy )
......
......@@ -82,7 +82,7 @@ vlc_module_begin ()
change_string_list( preset_list, preset_list_text, 0 )
add_string( "equalizer-bands", NULL, NULL, BANDS_TEXT,
BANDS_LONGTEXT, true )
add_bool( "equalizer-2pass", 0, NULL, TWOPASS_TEXT,
add_bool( "equalizer-2pass", false, NULL, TWOPASS_TEXT,
TWOPASS_LONGTEXT, true )
add_float( "equalizer-preamp", 12.0, NULL, PREAMP_TEXT,
PREAMP_LONGTEXT, true )
......
......@@ -243,7 +243,7 @@ vlc_module_begin ()
add_shortcut( "directx" )
add_integer( "directx-audio-device", 0, NULL, DEVICE_TEXT,
DEVICE_LONGTEXT, true )
add_bool( "directx-audio-float32", 0, 0, FLOAT_TEXT,
add_bool( "directx-audio-float32", false, NULL, FLOAT_TEXT,
FLOAT_LONGTEXT, true )
add_string( "directx-audio-speaker", "Windows default", NULL,
SPEAKER_TEXT, SPEAKER_LONGTEXT, true )
......
......@@ -85,7 +85,7 @@ vlc_module_begin ()
set_capability( "audio output", 100 )
set_category( CAT_AUDIO )
set_subcategory( SUBCAT_AUDIO_AOUT )
add_bool( AUTO_CONNECT_OPTION, 0, NULL, AUTO_CONNECT_TEXT,
add_bool( AUTO_CONNECT_OPTION, false, NULL, AUTO_CONNECT_TEXT,
AUTO_CONNECT_LONGTEXT, true )
add_string( CONNECT_REGEX_OPTION, NULL, NULL, CONNECT_REGEX_TEXT,
CONNECT_REGEX_LONGTEXT, true )
......
......@@ -113,7 +113,7 @@ vlc_module_begin ()
add_file( "oss-audio-device", "/dev/dsp", aout_FindAndRestart,
N_("OSS DSP device"), NULL, false )
add_deprecated_alias( "dspdev" ) /* deprecated since 0.9.3 */
add_bool( "oss-buggy", 0, NULL, BUGGY_TEXT, BUGGY_LONGTEXT, true )
add_bool( "oss-buggy", false, NULL, BUGGY_TEXT, BUGGY_LONGTEXT, true )
set_capability( "audio output", 100 )
add_shortcut( "oss" )
......
......@@ -168,7 +168,7 @@ vlc_module_begin ()
set_capability( "audio output", 50 )
set_category( CAT_AUDIO )
set_subcategory( SUBCAT_AUDIO_AOUT )
add_bool( "waveout-float32", 1, 0, FLOAT_TEXT, FLOAT_LONGTEXT, true )
add_bool( "waveout-float32", true, NULL, FLOAT_TEXT, FLOAT_LONGTEXT, true )
add_string( "waveout-audio-device", "wavemapper", NULL,
DEVICE_TEXT, DEVICE_LONG, false )
......
......@@ -105,12 +105,12 @@ vlc_module_begin ()
set_callbacks( OpenDecoder, CloseDecoder )
add_bool( "ffmpeg-dr", 1, NULL, DR_TEXT, DR_TEXT, true )
add_bool( "ffmpeg-dr", true, NULL, DR_TEXT, DR_TEXT, true )
add_integer ( "ffmpeg-error-resilience", 1, NULL, ERROR_TEXT,
ERROR_LONGTEXT, true )
add_integer ( "ffmpeg-workaround-bugs", 1, NULL, BUGS_TEXT, BUGS_LONGTEXT,
false )
add_bool( "ffmpeg-hurry-up", 1, NULL, HURRYUP_TEXT, HURRYUP_LONGTEXT,
add_bool( "ffmpeg-hurry-up", true, NULL, HURRYUP_TEXT, HURRYUP_LONGTEXT,
false )
add_integer( "ffmpeg-skip-frame", 0, NULL, SKIP_FRAME_TEXT,
SKIP_FRAME_LONGTEXT, true )
......@@ -123,7 +123,7 @@ vlc_module_begin ()
add_integer ( "ffmpeg-lowres", 0, NULL, LOWRES_TEXT, LOWRES_LONGTEXT,
true )
change_integer_range( 0, 2 )
add_bool( "ffmpeg-fast", 0, NULL, FAST_TEXT, FAST_LONGTEXT, true )
add_bool( "ffmpeg-fast", false, NULL, FAST_TEXT, FAST_LONGTEXT, true )
add_integer ( "ffmpeg-skiploopfilter", 0, NULL, SKIPLOOPF_TEXT,
SKIPLOOPF_LONGTEXT, true )
change_safe ()
......@@ -151,15 +151,15 @@ vlc_module_begin ()
ENC_KEYINT_LONGTEXT, false )
add_integer( ENC_CFG_PREFIX "bframes", 0, NULL, ENC_BFRAMES_TEXT,
ENC_BFRAMES_LONGTEXT, false )
add_bool( ENC_CFG_PREFIX "hurry-up", 0, NULL, ENC_HURRYUP_TEXT,
add_bool( ENC_CFG_PREFIX "hurry-up", false, NULL, ENC_HURRYUP_TEXT,
ENC_HURRYUP_LONGTEXT, false )
add_bool( ENC_CFG_PREFIX "interlace", 0, NULL, ENC_INTERLACE_TEXT,
add_bool( ENC_CFG_PREFIX "interlace", false, NULL, ENC_INTERLACE_TEXT,
ENC_INTERLACE_LONGTEXT, true )
add_bool( ENC_CFG_PREFIX "interlace-me", 1, NULL, ENC_INTERLACE_ME_TEXT,
add_bool( ENC_CFG_PREFIX "interlace-me", true, NULL, ENC_INTERLACE_ME_TEXT,
ENC_INTERLACE_ME_LONGTEXT, true )
add_integer( ENC_CFG_PREFIX "vt", 0, NULL, ENC_VT_TEXT,
ENC_VT_LONGTEXT, true )
add_bool( ENC_CFG_PREFIX "pre-me", 0, NULL, ENC_PRE_ME_TEXT,
add_bool( ENC_CFG_PREFIX "pre-me", false, NULL, ENC_PRE_ME_TEXT,
ENC_PRE_ME_LONGTEXT, true )
add_integer( ENC_CFG_PREFIX "rc-buffer-size", 224*1024*8, NULL,
ENC_RC_BUF_TEXT, ENC_RC_BUF_LONGTEXT, true )
......@@ -169,13 +169,13 @@ vlc_module_begin ()
ENC_IQUANT_FACTOR_TEXT, ENC_IQUANT_FACTOR_LONGTEXT, true )
add_integer( ENC_CFG_PREFIX "noise-reduction", 0, NULL,
ENC_NOISE_RED_TEXT, ENC_NOISE_RED_LONGTEXT, true )
add_bool( ENC_CFG_PREFIX "mpeg4-matrix", 0, NULL,
add_bool( ENC_CFG_PREFIX "mpeg4-matrix", false, NULL,
ENC_MPEG4_MATRIX_TEXT, ENC_MPEG4_MATRIX_LONGTEXT, true )
add_integer( ENC_CFG_PREFIX "qmin", 0, NULL,
ENC_QMIN_TEXT, ENC_QMIN_LONGTEXT, true )
add_integer( ENC_CFG_PREFIX "qmax", 0, NULL,
ENC_QMAX_TEXT, ENC_QMAX_LONGTEXT, true )
add_bool( ENC_CFG_PREFIX "trellis", 0, NULL,
add_bool( ENC_CFG_PREFIX "trellis", false, NULL,
ENC_TRELLIS_TEXT, ENC_TRELLIS_LONGTEXT, true )
add_float( ENC_CFG_PREFIX "qscale", 0, NULL,
ENC_QSCALE_TEXT, ENC_QSCALE_LONGTEXT, true )
......
......@@ -100,11 +100,11 @@ vlc_module_begin ()
WIDTH_LONGTEXT, true )
add_integer( "fake-height", 0, NULL, HEIGHT_TEXT,
HEIGHT_LONGTEXT, true )
add_bool( "fake-keep-ar", 0, NULL, KEEP_AR_TEXT, KEEP_AR_LONGTEXT,
add_bool( "fake-keep-ar", false, NULL, KEEP_AR_TEXT, KEEP_AR_LONGTEXT,
true )
add_string( "fake-aspect-ratio", "", NULL,
ASPECT_RATIO_TEXT, ASPECT_RATIO_LONGTEXT, true )
add_bool( "fake-deinterlace", 0, NULL, DEINTERLACE_TEXT,
add_bool( "fake-deinterlace", false, NULL, DEINTERLACE_TEXT,
DEINTERLACE_LONGTEXT, false )
add_string( "fake-deinterlace-module", "deinterlace", NULL,
DEINTERLACE_MODULE_TEXT, DEINTERLACE_MODULE_LONGTEXT,
......
......@@ -77,9 +77,9 @@ vlc_module_begin ()
add_integer( "telx-override-page", -1, NULL,
OVERRIDE_PAGE_TEXT, OVERRIDE_PAGE_LONGTEXT, true )
add_bool( "telx-ignore-subtitle-flag", 0, NULL,
add_bool( "telx-ignore-subtitle-flag", false, NULL,
IGNORE_SUB_FLAG_TEXT, IGNORE_SUB_FLAG_LONGTEXT, true )
add_bool( "telx-french-workaround", 0, NULL,
add_bool( "telx-french-workaround", false, NULL,
FRENCH_WORKAROUND_TEXT, FRENCH_WORKAROUND_LONGTEXT, true )
vlc_module_end ()
......
......@@ -84,7 +84,7 @@ vlc_module_begin ()
add_integer( ENC_CFG_PREFIX "mode", 0, NULL, ENC_MODE_TEXT,
ENC_MODE_LONGTEXT, false )
change_integer_list( pi_stereo_values, ppsz_stereo_descriptions, NULL );
add_bool( ENC_CFG_PREFIX "vbr", 0, NULL, ENC_VBR_TEXT,
add_bool( ENC_CFG_PREFIX "vbr", false, NULL, ENC_VBR_TEXT,
ENC_VBR_LONGTEXT, false )
add_integer( ENC_CFG_PREFIX "psy", 3, NULL, ENC_PSY_TEXT,
ENC_PSY_LONGTEXT, false )
......
......@@ -82,7 +82,7 @@ vlc_module_begin ()
set_help( N_("Use HDAPS, AMS, APPLESMC or UNIMOTION motion sensors " \
"to rotate the video") )
add_bool( "motion-use-rotate", 0, NULL,
add_bool( "motion-use-rotate", false, NULL,
USE_ROTATE_TEXT, USE_ROTATE_TEXT, false )
set_capability( "interface", 0 )
......
......@@ -78,7 +78,7 @@ vlc_module_begin ()
set_category( CAT_ADVANCED )
set_subcategory( SUBCAT_ADVANCED_MISC )
add_bool( "netsync-master", 0, NULL,
add_bool( "netsync-master", false, NULL,
NETSYNC_TEXT, NETSYNC_LONGTEXT, true )
add_string( "netsync-master-ip", NULL, NULL, MIP_TEXT, MIP_LONGTEXT,
true )
......
......@@ -66,9 +66,9 @@ vlc_module_begin ()
set_description( N_("Windows Service interface") )
set_category( CAT_INTERFACE )
set_subcategory( SUBCAT_INTERFACE_CONTROL )
add_bool( "ntservice-install", 0, NULL,
add_bool( "ntservice-install", false, NULL,
INSTALL_TEXT, INSTALL_LONGTEXT, true )
add_bool( "ntservice-uninstall", 0, NULL,
add_bool( "ntservice-uninstall", false, NULL,
UNINSTALL_TEXT, UNINSTALL_LONGTEXT, true )
add_string ( "ntservice-name", VLCSERVICENAME, NULL,
NAME_TEXT, NAME_LONGTEXT, true )
......
......@@ -191,13 +191,13 @@ vlc_module_begin ()
set_category( CAT_INTERFACE )
set_subcategory( SUBCAT_INTERFACE_MAIN )
set_description( N_("Remote control interface") )
add_bool( "rc-show-pos", 0, NULL, POS_TEXT, POS_LONGTEXT, true )
add_bool( "rc-show-pos", false, NULL, POS_TEXT, POS_LONGTEXT, true )
#ifdef WIN32
add_bool( "rc-quiet", 0, NULL, QUIET_TEXT, QUIET_LONGTEXT, false )
add_bool( "rc-quiet", false, NULL, QUIET_TEXT, QUIET_LONGTEXT, false )
#else
#if defined (HAVE_ISATTY)
add_bool( "rc-fake-tty", 0, NULL, TTY_TEXT, TTY_LONGTEXT, true )
add_bool( "rc-fake-tty", false, NULL, TTY_TEXT, TTY_LONGTEXT, true )
#endif
add_string( "rc-unix", NULL, NULL, UNIX_TEXT, UNIX_LONGTEXT, true )
#endif
......
......@@ -67,7 +67,7 @@ vlc_module_begin ()
set_category( CAT_INPUT )
set_subcategory( SUBCAT_INPUT_DEMUX )
add_bool( "avi-interleaved", 0, NULL,
add_bool( "avi-interleaved", false, NULL,
INTERLEAVE_TEXT, INTERLEAVE_LONGTEXT, true )
add_integer( "avi-index", 0, NULL,
INDEX_TEXT, INDEX_LONGTEXT, false )
......
......@@ -57,7 +57,7 @@ vlc_module_begin ()
set_capability( "demux", 0 )
add_file( "demuxdump-file", "stream-demux.dump", NULL, FILE_TEXT,
FILE_LONGTEXT, false )
add_bool( "demuxdump-append", 0, NULL, APPEND_TEXT, APPEND_LONGTEXT,
add_bool( "demuxdump-append", false, NULL, APPEND_TEXT, APPEND_LONGTEXT,
false )
set_callbacks( Open, Close )
add_shortcut( "dump" )
......
......@@ -112,7 +112,7 @@ vlc_module_begin ()
add_shortcut( "livedotcom" )
set_capability( "access_demux", 0 )
set_callbacks( Open, Close )
add_bool( "rtsp-tcp", 0, NULL,
add_bool( "rtsp-tcp", false, NULL,
N_("Use RTP over RTSP (TCP)"),
N_("Use RTP over RTSP (TCP)"), true )
change_safe()
......@@ -123,7 +123,7 @@ vlc_module_begin ()
N_("Force multicast RTP via RTSP"),
N_("Force multicast RTP via RTSP"), true )
change_safe()
add_bool( "rtsp-http", 0, NULL,
add_bool( "rtsp-http", false, NULL,
N_("Tunnel RTSP and RTP over HTTP"),
N_("Tunnel RTSP and RTP over HTTP"), true )
change_safe()
......
......@@ -47,23 +47,23 @@ vlc_module_begin ()
set_category( CAT_INPUT )
set_subcategory( SUBCAT_INPUT_DEMUX )
add_bool( "mkv-use-ordered-chapters", 1, NULL,
add_bool( "mkv-use-ordered-chapters", true, NULL,
N_("Ordered chapters"),
N_("Play ordered chapters as specified in the segment."), true );
add_bool( "mkv-use-chapter-codec", 1, NULL,
add_bool( "mkv-use-chapter-codec", true, NULL,
N_("Chapter codecs"),
N_("Use chapter codecs found in the segment."), true );
add_bool( "mkv-preload-local-dir", 0, NULL,
add_bool( "mkv-preload-local-dir", false, NULL,
N_("Preload Directory"),
N_("Preload matroska files from the same family in the same directory (not good for broken files)."), true );
add_bool( "mkv-seek-percent", 0, NULL,
add_bool( "mkv-seek-percent", false, NULL,
N_("Seek based on percent not time"),
N_("Seek based on percent not time."), true );
add_bool( "mkv-use-dummy", 0, NULL,
add_bool( "mkv-use-dummy", false, NULL,
N_("Dummy Elements"),
N_("Read and discard unknown EBML elements (not good for broken files)."), true );
......
......@@ -54,13 +54,13 @@ vlc_module_begin ()
set_category( CAT_INPUT )
set_subcategory( SUBCAT_INPUT_DEMUX )
add_bool( "playlist-autostart", 1, NULL,
add_bool( "playlist-autostart", true, NULL,
AUTOSTART_TEXT, AUTOSTART_LONGTEXT, false )
add_integer( "parent-item", 0, NULL, NULL, NULL, true )
change_internal ()
add_bool( "playlist-skip-ads", 1, NULL,
add_bool( "playlist-skip-ads", true, NULL,
SKIP_ADS_TEXT, SKIP_ADS_LONGTEXT, false )
set_shortname( N_("Playlist") )
......
......@@ -50,7 +50,7 @@ vlc_module_begin ()
set_capability( "demux", 3 )
set_category( CAT_INPUT )
set_subcategory( SUBCAT_INPUT_DEMUX )
add_bool( "rawdv-hurry-up", 0, NULL, HURRYUP_TEXT, HURRYUP_LONGTEXT, false )
add_bool( "rawdv-hurry-up", false, NULL, HURRYUP_TEXT, HURRYUP_LONGTEXT, false )
set_callbacks( Open, Close )
add_shortcut( "rawdv" )
vlc_module_end ()
......
......@@ -150,17 +150,17 @@ vlc_module_begin ()
set_subcategory( SUBCAT_INPUT_DEMUX )
add_string( "ts-extra-pmt", NULL, NULL, PMT_TEXT, PMT_LONGTEXT, true )
add_bool( "ts-es-id-pid", 1, NULL, PID_TEXT, PID_LONGTEXT, true )
add_bool( "ts-es-id-pid", true, NULL, PID_TEXT, PID_LONGTEXT, true )
add_string( "ts-out", NULL, NULL, TSOUT_TEXT, TSOUT_LONGTEXT, true )
add_integer( "ts-out-mtu", 1400, NULL, MTUOUT_TEXT,
MTUOUT_LONGTEXT, true )
add_string( "ts-csa-ck", NULL, NULL, CSA_TEXT, CSA_LONGTEXT, true )
add_string( "ts-csa2-ck", NULL, NULL, CSA_TEXT, CSA_LONGTEXT, true )
add_integer( "ts-csa-pkt", 188, NULL, CPKT_TEXT, CPKT_LONGTEXT, true )
add_bool( "ts-silent", 0, NULL, SILENT_TEXT, SILENT_LONGTEXT, true )
add_bool( "ts-silent", false, NULL, SILENT_TEXT, SILENT_LONGTEXT, true )
add_file( "ts-dump-file", NULL, NULL, TSDUMP_TEXT, TSDUMP_LONGTEXT, false )
add_bool( "ts-dump-append", 0, NULL, APPEND_TEXT, APPEND_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 )
......
......@@ -52,7 +52,7 @@ void CloseVideo ( vlc_object_t * );
vlc_module_begin ()
set_category( CAT_INTERFACE )
set_subcategory( SUBCAT_INTERFACE_MAIN )
add_bool( "beos-dvdmenus", 0, NULL, _("Use DVD Menus"), "", true )
add_bool( "beos-dvdmenus", false, NULL, _("Use DVD Menus"), "", true )
set_shortname( "BeOS" )
set_description( N_("BeOS standard API interface") )
set_capability( "interface", 100 )
......
......@@ -106,19 +106,19 @@ vlc_module_begin ()
set_category( CAT_INTERFACE )
set_subcategory( SUBCAT_INTERFACE_MAIN )
linked_with_a_crap_library_which_uses_atexit( )
add_bool( "macosx-autoplay", 1, NULL, AUTOPLAY_OSX_TEST, AUTOPLAY_OSX_LONGTEXT,
add_bool( "macosx-autoplay", true, NULL, AUTOPLAY_OSX_TEST, AUTOPLAY_OSX_LONGTEXT,
false )
add_bool( "macosx-recentitems", 1, NULL, RECENT_ITEMS_TEXT, RECENT_ITEMS_LONGTEXT,
add_bool( "macosx-recentitems", true, NULL, RECENT_ITEMS_TEXT, RECENT_ITEMS_LONGTEXT,
false )
add_bool( "macosx-eq-keep", 1, NULL, EQ_KEEP_TEXT, EQ_KEEP_LONGTEXT,
add_bool( "macosx-eq-keep", true, NULL, EQ_KEEP_TEXT, EQ_KEEP_LONGTEXT,
false )
add_bool( "macosx-fspanel", 1, NULL, FSPANEL_TEXT, FSPANEL_LONGTEXT,
add_bool( "macosx-fspanel", true, NULL, FSPANEL_TEXT, FSPANEL_LONGTEXT,
false )
add_bool( "macosx-appleremote", 1, NULL, USE_APPLE_REMOTE_TEXT, USE_APPLE_REMOTE_LONGTEXT,
add_bool( "macosx-appleremote", true, NULL, USE_APPLE_REMOTE_TEXT, USE_APPLE_REMOTE_LONGTEXT,
false )
add_bool( "macosx-mediakeys", 1, NULL, USE_MEDIAKEYS_TEXT, USE_MEDIAKEYS_LONGTEXT,
add_bool( "macosx-mediakeys", true, NULL, USE_MEDIAKEYS_TEXT, USE_MEDIAKEYS_LONGTEXT,
false )
add_bool( "macosx-mediakeys-background", 1, NULL, USE_MEDIAKEYS_BACKGROUND_TEXT, USE_MEDIAKEYS_BACKGROUND_LONGTEXT,
add_bool( "macosx-mediakeys-background", true, NULL, USE_MEDIAKEYS_BACKGROUND_TEXT, USE_MEDIAKEYS_BACKGROUND_LONGTEXT,
false )
add_submodule ()
......@@ -130,13 +130,13 @@ vlc_module_begin ()
add_integer( "macosx-vdev", 0, NULL, VDEV_TEXT, VDEV_LONGTEXT,
false )
add_bool( "macosx-stretch", 0, NULL, STRETCH_TEXT, STRETCH_LONGTEXT,
add_bool( "macosx-stretch", false, NULL, STRETCH_TEXT, STRETCH_LONGTEXT,
false )
add_float_with_range( "macosx-opaqueness", 1, 0, 1, NULL,
OPAQUENESS_TEXT, OPAQUENESS_LONGTEXT, true );
add_bool( "macosx-black", 1, NULL, BLACK_TEXT, BLACK_LONGTEXT,
add_bool( "macosx-black", true, NULL, BLACK_TEXT, BLACK_LONGTEXT,
false )
add_bool( "macosx-background", 0, NULL, BACKGROUND_TEXT, BACKGROUND_LONGTEXT,
add_bool( "macosx-background", false, NULL, BACKGROUND_TEXT, BACKGROUND_LONGTEXT,
false )
vlc_module_end ()
......@@ -71,7 +71,7 @@ vlc_module_begin ()
set_category( CAT_INTERFACE )
set_subcategory( SUBCAT_INTERFACE_MAIN )
add_bool( "wince-embed", 1, NULL,
add_bool( "wince-embed", true, NULL,
EMBED_TEXT, EMBED_LONGTEXT, false )
add_submodule ()
......
......@@ -65,7 +65,7 @@ vlc_module_begin ()
#ifdef WIN32
set_section( N_( "Dummy Interface" ), NULL )
add_category_hint( N_("Interface"), NULL, false )
add_bool( "dummy-quiet", 0, NULL, QUIET_TEXT, QUIET_LONGTEXT, false )
add_bool( "dummy-quiet", false, NULL, QUIET_TEXT, QUIET_LONGTEXT, false )
#endif
add_submodule ()
set_description( N_("Dummy demux function") )
......@@ -79,7 +79,7 @@ vlc_module_begin ()
set_callbacks( OpenDecoder, CloseDecoder )
set_category( CAT_INPUT )
set_subcategory( SUBCAT_INPUT_SCODEC )
add_bool( "dummy-save-es", 0, NULL, SAVE_TEXT, SAVE_LONGTEXT, true )
add_bool( "dummy-save-es", false, NULL, SAVE_TEXT, SAVE_LONGTEXT, true )
add_submodule ()
set_section( N_( "Dump decoder" ), NULL )
set_description( N_("Dump decoder function") )
......
......@@ -167,7 +167,7 @@ vlc_module_begin ()
EFFECT_LONGTEXT, false )
change_integer_list( pi_effects, ppsz_effects_text, NULL )
add_bool( "freetype-yuvp", 0, NULL, YUVP_TEXT,
add_bool( "freetype-yuvp", false, NULL, YUVP_TEXT,
YUVP_LONGTEXT, true )
set_capability( "text renderer", 100 )
add_shortcut( "text" )
......
......@@ -87,7 +87,7 @@ vlc_module_begin ()
set_subcategory( SUBCAT_INTERFACE_CONTROL )
set_description( N_("XOSD interface") )
set_shortname( "XOSD" )
add_bool( "xosd-position", 1, NULL, POSITION_TEXT, POSITION_LONGTEXT, true )
add_bool( "xosd-position", true, NULL, POSITION_TEXT, POSITION_LONGTEXT, true )
add_integer( "xosd-text-offset", 30, NULL, TXT_OFS_TEXT, TXT_OFS_LONGTEXT, true )
add_integer( "xosd-shadow-offset", 2, NULL,
SHD_OFS_TEXT, SHD_OFS_LONGTEXT, true )
......
......@@ -75,7 +75,7 @@ static qte_thread_t * p_qte_main = NULL;
vlc_module_begin ()
set_description( N_("Qt Embedded GUI helper") )
set_capability( "gui-helper", 90 )
add_bool( "qte-guiserver", 0, NULL, STANDALONE_TEXT, STANDALONE_LONGTEXT, false )
add_bool( "qte-guiserver", false, NULL, STANDALONE_TEXT, STANDALONE_LONGTEXT, false )
add_shortcut( "qte" )
set_callbacks( Open, Close )
vlc_module_end ()
......
......@@ -60,7 +60,7 @@ vlc_module_begin ()
set_subcategory( SUBCAT_SOUT_MUX )
set_shortname( "MP4" )
add_bool( SOUT_CFG_PREFIX "faststart", 1, NULL,
add_bool( SOUT_CFG_PREFIX "faststart", true, NULL,
FASTSTART_TEXT, FASTSTART_LONGTEXT,
true )
set_capability( "sout mux", 5 )
......
......@@ -210,7 +210,7 @@ vlc_module_begin ()
#endif
add_string( SOUT_CFG_PREFIX "program-pmt", NULL, NULL, PMTPROG_TEXT,
PMTPROG_LONGTEXT, true )
add_bool( SOUT_CFG_PREFIX "es-id-pid", 0, NULL, PID_TEXT, PID_LONGTEXT,
add_bool( SOUT_CFG_PREFIX "es-id-pid", false, NULL, PID_TEXT, PID_LONGTEXT,
true )
add_string( SOUT_CFG_PREFIX "muxpmt", NULL, NULL, MUXPMT_TEXT, MUXPMT_LONGTEXT, true )
#ifdef HAVE_DVBPSI_SDT
......
......@@ -128,18 +128,18 @@ vlc_module_begin ()
add_string( "sap-addr", NULL, NULL,
SAP_ADDR_TEXT, SAP_ADDR_LONGTEXT, true )
add_bool( "sap-ipv4", 1 , NULL,
add_bool( "sap-ipv4", true, NULL,
SAP_IPV4_TEXT,SAP_IPV4_LONGTEXT, true )
add_bool( "sap-ipv6", 1 , NULL,
add_bool( "sap-ipv6", true, NULL,
SAP_IPV6_TEXT, SAP_IPV6_LONGTEXT, true )
add_integer( "sap-timeout", 1800, NULL,
SAP_TIMEOUT_TEXT, SAP_TIMEOUT_LONGTEXT, true )
add_bool( "sap-parse", 1 , NULL,
add_bool( "sap-parse", true, NULL,
SAP_PARSE_TEXT,SAP_PARSE_LONGTEXT, true )
add_bool( "sap-strict", 0 , NULL,
add_bool( "sap-strict", false, NULL,
SAP_STRICT_TEXT,SAP_STRICT_LONGTEXT, true )
#if 0
add_bool( "sap-cache", 0 , NULL,
add_bool( "sap-cache", false, NULL,
SAP_CACHE_TEXT,SAP_CACHE_LONGTEXT, true )
#endif
add_obsolete_bool( "sap-timeshift" ) /* Redumdant since 1.0.0 */
......
......@@ -57,9 +57,9 @@ vlc_module_begin ()
add_shortcut( "display" )
set_category( CAT_SOUT )
set_subcategory( SUBCAT_SOUT_STREAM )
add_bool( SOUT_CFG_PREFIX "audio", 1, NULL, AUDIO_TEXT,
add_bool( SOUT_CFG_PREFIX "audio", true, NULL, AUDIO_TEXT,
AUDIO_LONGTEXT, true )
add_bool( SOUT_CFG_PREFIX "video", 1, NULL, VIDEO_TEXT,
add_bool( SOUT_CFG_PREFIX "video", true, NULL, VIDEO_TEXT,
VIDEO_LONGTEXT, true )
add_integer( SOUT_CFG_PREFIX "delay", 100, NULL, DELAY_TEXT,
DELAY_LONGTEXT, true )
......
......@@ -206,7 +206,7 @@ vlc_module_begin ()
add_string( SOUT_CFG_PREFIX "salt", "", NULL,
SRTP_SALT_TEXT, SRTP_SALT_LONGTEXT, false )
add_bool( SOUT_CFG_PREFIX "mp4a-latm", 0, NULL, RFC3016_TEXT,
add_bool( SOUT_CFG_PREFIX "mp4a-latm", false, NULL, RFC3016_TEXT,
RFC3016_LONGTEXT, false )
set_callbacks( Open, Close )
......
......@@ -131,7 +131,7 @@ vlc_module_begin ()
GOP_TEXT, GOP_LONGTEXT, true )
add_integer( SOUT_CFG_PREFIX "qscale", 5, NULL,
QSCALE_TEXT, QSCALE_LONGTEXT, true )
add_bool( SOUT_CFG_PREFIX "mute-audio", 1, NULL,
add_bool( SOUT_CFG_PREFIX "mute-audio", true, NULL,
AUDIO_TEXT, AUDIO_LONGTEXT, true )
vlc_module_end ()
......
......@@ -179,7 +179,7 @@ vlc_module_begin ()
FPS_LONGTEXT, false )
add_bool( SOUT_CFG_PREFIX "hurry-up", true, NULL, HURRYUP_TEXT,
HURRYUP_LONGTEXT, false )
add_bool( SOUT_CFG_PREFIX "deinterlace", 0, NULL, DEINTERLACE_TEXT,
add_bool( SOUT_CFG_PREFIX "deinterlace", false, NULL, DEINTERLACE_TEXT,
DEINTERLACE_LONGTEXT, false )
add_string( SOUT_CFG_PREFIX "deinterlace-module", "deinterlace", NULL,
DEINTERLACE_MODULE_TEXT, DEINTERLACE_MODULE_LONGTEXT,
......@@ -208,7 +208,7 @@ vlc_module_begin ()
ACHANS_LONGTEXT, false )
add_integer( SOUT_CFG_PREFIX "samplerate", 0, NULL, ARATE_TEXT,
ARATE_LONGTEXT, true )
add_bool( SOUT_CFG_PREFIX "audio-sync", 0, NULL, ASYNC_TEXT,
add_bool( SOUT_CFG_PREFIX "audio-sync", false, NULL, ASYNC_TEXT,
ASYNC_LONGTEXT, false )
add_module_list( SOUT_CFG_PREFIX "afilter", "audio filter2",
NULL, NULL,
......@@ -219,20 +219,20 @@ vlc_module_begin ()
SENC_LONGTEXT, false )
add_string( SOUT_CFG_PREFIX "scodec", NULL, NULL, SCODEC_TEXT,
SCODEC_LONGTEXT, false )
add_bool( SOUT_CFG_PREFIX "soverlay", 0, NULL, SCODEC_TEXT,
add_bool( SOUT_CFG_PREFIX "soverlay", false, NULL, SCODEC_TEXT,
SCODEC_LONGTEXT, false )
add_module_list( SOUT_CFG_PREFIX "sfilter", "video filter",
NULL, NULL,
SFILTER_TEXT, SFILTER_LONGTEXT, false )
set_section( N_("On Screen Display"), NULL )
add_bool( SOUT_CFG_PREFIX "osd", 0, NULL, OSD_TEXT,
add_bool( SOUT_CFG_PREFIX "osd", false, NULL, OSD_TEXT,
OSD_LONGTEXT, false )
set_section( N_("Miscellaneous"), NULL )
add_integer( SOUT_CFG_PREFIX "threads", 0, NULL, THREADS_TEXT,
THREADS_LONGTEXT, true )
add_bool( SOUT_CFG_PREFIX "high-priority", 0, NULL, HP_TEXT, HP_LONGTEXT,
add_bool( SOUT_CFG_PREFIX "high-priority", false, NULL, HP_TEXT, HP_LONGTEXT,
true )
vlc_module_end ()
......
......@@ -95,7 +95,7 @@ vlc_module_begin ()
add_float_with_range( "gamma", 1.0, 0.01, 10.0, NULL,
GAMMA_TEXT, GAMMA_LONGTEXT, false )
add_bool( "brightness-threshold", 0, NULL,
add_bool( "brightness-threshold", false, NULL,
THRES_TEXT, THRES_LONGTEXT, false )
add_shortcut( "adjust" )
......
......@@ -109,7 +109,7 @@ vlc_module_begin ()
add_string( "crop-geometry", NULL, NULL, GEOMETRY_TEXT,
GEOMETRY_LONGTEXT, false )
add_bool( "autocrop", 0, NULL, AUTOCROP_TEXT,
add_bool( "autocrop", false, NULL, AUTOCROP_TEXT,
AUTOCROP_LONGTEXT, false )
#ifdef BEST_AUTOCROP
......
......@@ -88,7 +88,7 @@ vlc_module_begin ()
add_integer_with_range( FILTER_PREFIX "type", 0, 0, 1, NULL,
GRADIENT_TEXT, GRADIENT_LONGTEXT, false )
add_bool( FILTER_PREFIX "cartoon", 1, NULL,