Commit f98a66ce authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

add_integer: remove callback parameter

parent 85ba4839
......@@ -345,7 +345,7 @@ enum vlc_module_properties
change_integer_range (i_subcategory /* gruik */, 0);
#endif
#define add_integer( name, value, p_callback, text, longtext, advc ) \
#define add_integer( name, value, text, longtext, advc ) \
add_int_inner( CONFIG_ITEM_INTEGER, name, text, longtext, advc, value )
#define add_key( name, value, p_callback, text, longtext, advc ) \
......@@ -354,7 +354,7 @@ enum vlc_module_properties
KEY_UNSET )
#define add_integer_with_range( name, value, i_min, i_max, p_callback, text, longtext, advc ) \
add_integer( name, value, p_callback, text, longtext, advc ) \
add_integer( name, value, text, longtext, advc ) \
change_integer_range( i_min, i_max )
#define add_float( name, v, text, longtext, advc ) \
......
......@@ -98,9 +98,9 @@ vlc_module_begin()
add_bool( CFG_PREFIX "stereo", true, NULL, STEREO_TEXT, STEREO_LONGTEXT,
true )
add_integer( CFG_PREFIX "samplerate", 48000, NULL, SAMPLERATE_TEXT,
add_integer( CFG_PREFIX "samplerate", 48000, SAMPLERATE_TEXT,
SAMPLERATE_LONGTEXT, true )
add_integer( CFG_PREFIX "caching", DEFAULT_PTS_DELAY / 1000, NULL,
add_integer( CFG_PREFIX "caching", DEFAULT_PTS_DELAY / 1000,
CACHING_TEXT, CACHING_LONGTEXT, true )
vlc_module_end()
......
......@@ -62,7 +62,7 @@ vlc_module_begin ()
set_description( N_("Blu-Ray Disc Input") )
set_category( CAT_INPUT )
set_subcategory( SUBCAT_INPUT_ACCESS )
add_integer( "bd-caching", DEFAULT_PTS_DELAY / 1000, NULL,
add_integer( "bd-caching", DEFAULT_PTS_DELAY / 1000,
CACHING_TEXT, CACHING_LONGTEXT, true )
set_capability( "access_demux", 60 )
add_shortcut( "bd", "file" )
......
......@@ -196,10 +196,10 @@ vlc_module_begin ()
set_category( CAT_INPUT )
set_subcategory( SUBCAT_INPUT_ACCESS )
add_integer( "dvb-caching", DEFAULT_PTS_DELAY / 1000, NULL, CACHING_TEXT,
add_integer( "dvb-caching", DEFAULT_PTS_DELAY / 1000, CACHING_TEXT,
CACHING_LONGTEXT, true )
change_safe()
add_integer( "dvb-frequency", 0, NULL, FREQ_TEXT, FREQ_LONGTEXT,
add_integer( "dvb-frequency", 0, FREQ_TEXT, FREQ_LONGTEXT,
false )
change_safe()
# if defined(WIN32) || defined(WINCE)
......@@ -207,11 +207,11 @@ vlc_module_begin ()
true )
add_string( "dvb-create-name", NULL, CREATE_TEXT,
CREATE_LONGTEXT, true )
add_integer( "dvb-adapter", -1, NULL, ADAPTER_TEXT, ADAPTER_LONGTEXT,
add_integer( "dvb-adapter", -1, ADAPTER_TEXT, ADAPTER_LONGTEXT,
true )
# else
/* dvb-device refers to a frontend within an adapter */
add_integer( "dvb-device", 0, NULL, DEVICE_TEXT, DEVICE_LONGTEXT,
add_integer( "dvb-device", 0, DEVICE_TEXT, DEVICE_LONGTEXT,
true )
add_bool( "dvb-probe", true, NULL, PROBE_TEXT, PROBE_LONGTEXT, true )
add_bool( "dvb-budget-mode", false, NULL, BUDGET_TEXT, BUDGET_LONGTEXT,
......@@ -219,7 +219,7 @@ vlc_module_begin ()
# endif
/* DVB-S (satellite) */
add_integer( "dvb-inversion", 2, NULL, INVERSION_TEXT,
add_integer( "dvb-inversion", 2, INVERSION_TEXT,
INVERSION_LONGTEXT, true )
change_integer_list( i_inversion_list, ppsz_inversion_text )
# if defined(WIN32) || defined(WINCE)
......@@ -227,68 +227,68 @@ vlc_module_begin ()
POLARISATION_LONGTEXT, false )
change_string_list( ppsz_polar_list, ppsz_polar_text, 0 )
/* Note: Polaristion H = voltage 18; V = voltage 13; */
add_integer( "dvb-network-id", 0, NULL, NETID_TEXT, NETID_LONGTEXT,
add_integer( "dvb-network-id", 0, NETID_TEXT, NETID_LONGTEXT,
true )
add_integer( "dvb-azimuth", 0, NULL, AZIMUTH_TEXT, AZIMUTH_LONGTEXT,
add_integer( "dvb-azimuth", 0, AZIMUTH_TEXT, AZIMUTH_LONGTEXT,
true )
add_integer( "dvb-elevation", 0, NULL, ELEVATION_TEXT,
add_integer( "dvb-elevation", 0, ELEVATION_TEXT,
ELEVATION_LONGTEXT, true )
add_integer( "dvb-longitude", 0, NULL, LONGITUDE_TEXT,
add_integer( "dvb-longitude", 0, LONGITUDE_TEXT,
LONGITUDE_LONGTEXT, true )
add_string( "dvb-range", NULL, RANGE_TEXT,
RANGE_LONGTEXT, true )
/* dvb-range corresponds to the BDA InputRange parameter which is
* used by some drivers to control the diseqc */
# else
add_integer( "dvb-satno", 0, NULL, SATNO_TEXT, SATNO_LONGTEXT,
add_integer( "dvb-satno", 0, SATNO_TEXT, SATNO_LONGTEXT,
true )
add_integer( "dvb-voltage", 13, NULL, VOLTAGE_TEXT, VOLTAGE_LONGTEXT,
add_integer( "dvb-voltage", 13, VOLTAGE_TEXT, VOLTAGE_LONGTEXT,
true )
add_bool( "dvb-high-voltage", false, NULL, HIGH_VOLTAGE_TEXT,
HIGH_VOLTAGE_LONGTEXT, true )
add_integer( "dvb-tone", -1, NULL, TONE_TEXT, TONE_LONGTEXT,
add_integer( "dvb-tone", -1, TONE_TEXT, TONE_LONGTEXT,
true )
add_integer( "dvb-fec", 9, NULL, FEC_TEXT, FEC_LONGTEXT, true )
add_integer( "dvb-fec", 9, FEC_TEXT, FEC_LONGTEXT, true )
# endif
add_integer( "dvb-lnb-lof1", 0, NULL, LNB_LOF1_TEXT,
add_integer( "dvb-lnb-lof1", 0, LNB_LOF1_TEXT,
LNB_LOF1_LONGTEXT, true )
add_integer( "dvb-lnb-lof2", 0, NULL, LNB_LOF2_TEXT,
add_integer( "dvb-lnb-lof2", 0, LNB_LOF2_TEXT,
LNB_LOF2_LONGTEXT, true )
add_integer( "dvb-lnb-slof", 0, NULL, LNB_SLOF_TEXT,
add_integer( "dvb-lnb-slof", 0, LNB_SLOF_TEXT,
LNB_SLOF_LONGTEXT, true )
add_integer( "dvb-srate", 27500, NULL, SRATE_TEXT, SRATE_LONGTEXT,
add_integer( "dvb-srate", 27500, SRATE_TEXT, SRATE_LONGTEXT,
false )
/* DVB-C (cable) */
add_integer( "dvb-modulation", -1, NULL, MODULATION_TEXT,
add_integer( "dvb-modulation", -1, MODULATION_TEXT,
MODULATION_LONGTEXT, true )
change_integer_list( i_mod_list, ppsz_mod_text )
/* ATSC */
add_integer( "dvb-major-channel", 0, NULL, MAJOR_CHANNEL_TEXT,
add_integer( "dvb-major-channel", 0, MAJOR_CHANNEL_TEXT,
MAJOR_CHANNEL_LONGTEXT, true )
add_integer( "dvb-minor-channel", 0, NULL, MINOR_CHANNEL_TEXT,
add_integer( "dvb-minor-channel", 0, MINOR_CHANNEL_TEXT,
MINOR_CHANNEL_LONGTEXT, true )
add_integer( "dvb-physical-channel", 0, NULL, PHYSICAL_CHANNEL_TEXT,
add_integer( "dvb-physical-channel", 0, PHYSICAL_CHANNEL_TEXT,
PHYSICAL_CHANNEL_LONGTEXT, true )
/* DVB-T (terrestrial) */
add_integer( "dvb-code-rate-hp", -1, NULL, CODE_RATE_HP_TEXT,
add_integer( "dvb-code-rate-hp", -1, CODE_RATE_HP_TEXT,
CODE_RATE_HP_LONGTEXT, true )
change_integer_list( i_hp_fec_list, ppsz_hp_fec_text )
add_integer( "dvb-code-rate-lp", -1, NULL, CODE_RATE_LP_TEXT,
add_integer( "dvb-code-rate-lp", -1, CODE_RATE_LP_TEXT,
CODE_RATE_LP_LONGTEXT, true )
change_integer_list( i_lp_fec_list, ppsz_lp_fec_text )
add_integer( "dvb-bandwidth", 0, NULL, BANDWIDTH_TEXT, BANDWIDTH_LONGTEXT,
add_integer( "dvb-bandwidth", 0, BANDWIDTH_TEXT, BANDWIDTH_LONGTEXT,
false )
change_integer_list( i_band_list, ppsz_band_text )
change_safe()
add_integer( "dvb-guard", -1, NULL, GUARD_TEXT, GUARD_LONGTEXT, true )
add_integer( "dvb-guard", -1, GUARD_TEXT, GUARD_LONGTEXT, true )
change_integer_list( i_guard_list, ppsz_guard_text )
add_integer( "dvb-transmission", -1, NULL, TRANSMISSION_TEXT,
add_integer( "dvb-transmission", -1, TRANSMISSION_TEXT,
TRANSMISSION_LONGTEXT, true )
change_integer_list( i_transmission_list, ppsz_transmission_text )
add_integer( "dvb-hierarchy", -1, NULL, HIERARCHY_TEXT, HIERARCHY_LONGTEXT,
add_integer( "dvb-hierarchy", -1, HIERARCHY_TEXT, HIERARCHY_LONGTEXT,
true )
change_integer_list( i_hierarchy_list, ppsz_hierarchy_text )
......
......@@ -55,7 +55,7 @@ vlc_module_begin ()
set_subcategory( SUBCAT_INPUT_ACCESS )
set_capability( "access", 60 )
add_integer( "bluray-caching", 1000, NULL,
add_integer( "bluray-caching", 1000,
CACHING_TEXT, CACHING_LONGTEXT, true )
add_shortcut( "bluray" )
......
......@@ -72,21 +72,21 @@ vlc_module_begin ()
set_callbacks( Open, Close )
add_usage_hint( N_("[cdda:][device][@[track]]") )
add_integer( "cdda-caching", DEFAULT_PTS_DELAY / 1000, NULL, CACHING_TEXT,
add_integer( "cdda-caching", DEFAULT_PTS_DELAY / 1000, CACHING_TEXT,
CACHING_LONGTEXT, true )
change_safe()
add_integer( "cdda-track", 0 , NULL, NULL, NULL, true )
add_integer( "cdda-track", 0 , NULL, NULL, true )
change_volatile ()
add_integer( "cdda-first-sector", -1, NULL, NULL, NULL, true )
add_integer( "cdda-first-sector", -1, NULL, NULL, true )
change_volatile ()
add_integer( "cdda-last-sector", -1, NULL, NULL, NULL, true )
add_integer( "cdda-last-sector", -1, NULL, NULL, true )
change_volatile ()
#ifdef HAVE_LIBCDDB
add_string( "cddb-server", "freedb.freedb.org", N_( "CDDB Server" ),
N_( "Address of the CDDB server to use." ), true )
add_integer( "cddb-port", 8880, NULL, N_( "CDDB port" ),
add_integer( "cddb-port", 8880, N_( "CDDB port" ),
N_( "CDDB Server port to use." ), true )
#endif
......
......@@ -223,7 +223,7 @@ vlc_module_begin ()
set_description( N_("DirectShow input") )
set_category( CAT_INPUT )
set_subcategory( SUBCAT_INPUT_ACCESS )
add_integer( CFG_PREFIX "caching", (mtime_t)(0.2*CLOCK_FREQ) / 1000, NULL,
add_integer( CFG_PREFIX "caching", (mtime_t)(0.2*CLOCK_FREQ) / 1000,
CACHING_TEXT, CACHING_LONGTEXT, true )
add_string( CFG_PREFIX "vdev", NULL, VDEV_TEXT, VDEV_LONGTEXT, false)
......@@ -248,44 +248,44 @@ vlc_module_begin ()
add_bool( CFG_PREFIX "tuner", false, NULL, TUNER_TEXT, TUNER_LONGTEXT, true )
add_integer( CFG_PREFIX "tuner-channel", 0, NULL, CHANNEL_TEXT, CHANNEL_LONGTEXT,
add_integer( CFG_PREFIX "tuner-channel", 0, CHANNEL_TEXT, CHANNEL_LONGTEXT,
true )
add_integer( CFG_PREFIX "tuner-frequency", 0, NULL, TVFREQ_TEXT, TVFREQ_LONGTEXT,
add_integer( CFG_PREFIX "tuner-frequency", 0, TVFREQ_TEXT, TVFREQ_LONGTEXT,
true )
add_integer( CFG_PREFIX "tuner-country", 0, NULL, COUNTRY_TEXT, COUNTRY_LONGTEXT,
add_integer( CFG_PREFIX "tuner-country", 0, COUNTRY_TEXT, COUNTRY_LONGTEXT,
true )
add_integer( CFG_PREFIX "tuner-standard", 0, NULL, STANDARD_TEXT, STANDARD_LONGTEXT,
add_integer( CFG_PREFIX "tuner-standard", 0, STANDARD_TEXT, STANDARD_LONGTEXT,
false )
change_integer_list( i_standards_list, ppsz_standards_list_text )
add_integer( CFG_PREFIX "tuner-input", 0, NULL, TUNER_INPUT_TEXT,
add_integer( CFG_PREFIX "tuner-input", 0, TUNER_INPUT_TEXT,
TUNER_INPUT_LONGTEXT, true )
change_integer_list( pi_tuner_input, ppsz_tuner_input_text )
add_integer( CFG_PREFIX "video-input", -1, NULL, VIDEO_IN_TEXT,
add_integer( CFG_PREFIX "video-input", -1, VIDEO_IN_TEXT,
VIDEO_IN_LONGTEXT, true )
add_integer( CFG_PREFIX "video-output", -1, NULL, VIDEO_OUT_TEXT,
add_integer( CFG_PREFIX "video-output", -1, VIDEO_OUT_TEXT,
VIDEO_OUT_LONGTEXT, true )
add_integer( CFG_PREFIX "audio-input", -1, NULL, AUDIO_IN_TEXT,
add_integer( CFG_PREFIX "audio-input", -1, AUDIO_IN_TEXT,
AUDIO_IN_LONGTEXT, true )
add_integer( CFG_PREFIX "audio-output", -1, NULL, AUDIO_OUT_TEXT,
add_integer( CFG_PREFIX "audio-output", -1, AUDIO_OUT_TEXT,
AUDIO_OUT_LONGTEXT, true )
add_integer( CFG_PREFIX "amtuner-mode", AMTUNER_MODE_TV, NULL,
add_integer( CFG_PREFIX "amtuner-mode", AMTUNER_MODE_TV,
AMTUNER_MODE_TEXT, AMTUNER_MODE_LONGTEXT, false)
change_integer_list( pi_amtuner_mode, ppsz_amtuner_mode_text )
add_integer( CFG_PREFIX "audio-channels", 0, NULL, AUDIO_CHANNELS_TEXT,
add_integer( CFG_PREFIX "audio-channels", 0, AUDIO_CHANNELS_TEXT,
AUDIO_CHANNELS_LONGTEXT, true )
add_integer( CFG_PREFIX "audio-samplerate", 0, NULL, AUDIO_SAMPLERATE_TEXT,
add_integer( CFG_PREFIX "audio-samplerate", 0, AUDIO_SAMPLERATE_TEXT,
AUDIO_SAMPLERATE_LONGTEXT, true )
add_integer( CFG_PREFIX "audio-bitspersample", 0, NULL, AUDIO_BITSPERSAMPLE_TEXT,
add_integer( CFG_PREFIX "audio-bitspersample", 0, AUDIO_BITSPERSAMPLE_TEXT,
AUDIO_BITSPERSAMPLE_LONGTEXT, true )
add_shortcut( "dshow" )
......
......@@ -66,7 +66,7 @@ vlc_module_begin ()
set_shortname( N_("DV") )
set_category( CAT_INPUT )
set_subcategory( SUBCAT_INPUT_ACCESS )
add_integer( "dv-caching", 60000 / 1000, NULL, CACHING_TEXT, CACHING_LONGTEXT, true )
add_integer( "dv-caching", 60000 / 1000, CACHING_TEXT, CACHING_LONGTEXT, true )
change_safe()
set_capability( "access", 0 )
add_shortcut( "dv", "dv1394", "raw1394" )
......
......@@ -200,17 +200,17 @@ vlc_module_begin ()
set_category( CAT_INPUT )
set_subcategory( SUBCAT_INPUT_ACCESS )
add_integer( "dvb-caching", DEFAULT_PTS_DELAY / 1000, NULL, CACHING_TEXT,
add_integer( "dvb-caching", DEFAULT_PTS_DELAY / 1000, CACHING_TEXT,
CACHING_LONGTEXT, true )
change_safe()
add_integer( "dvb-adapter", 0, NULL, ADAPTER_TEXT, ADAPTER_LONGTEXT,
add_integer( "dvb-adapter", 0, ADAPTER_TEXT, ADAPTER_LONGTEXT,
false )
add_integer( "dvb-device", 0, NULL, DEVICE_TEXT, DEVICE_LONGTEXT,
add_integer( "dvb-device", 0, DEVICE_TEXT, DEVICE_LONGTEXT,
true )
add_integer( "dvb-frequency", 0, NULL, FREQ_TEXT, FREQ_LONGTEXT,
add_integer( "dvb-frequency", 0, FREQ_TEXT, FREQ_LONGTEXT,
false )
change_safe()
add_integer( "dvb-inversion", 2, NULL, INVERSION_TEXT, INVERSION_LONGTEXT,
add_integer( "dvb-inversion", 2, INVERSION_TEXT, INVERSION_LONGTEXT,
true )
add_bool( "dvb-probe", true, NULL, PROBE_TEXT, PROBE_LONGTEXT, true )
add_bool( "dvb-budget-mode", false, NULL, BUDGET_TEXT, BUDGET_LONGTEXT,
......@@ -218,38 +218,38 @@ vlc_module_begin ()
/* DVB-S (satellite) */
add_string( "dvb-satellite", NULL, SATELLITE_TEXT, SATELLITE_LONGTEXT,
true )
add_integer( "dvb-satno", 0, NULL, SATNO_TEXT, SATNO_LONGTEXT,
add_integer( "dvb-satno", 0, SATNO_TEXT, SATNO_LONGTEXT,
true )
add_integer( "dvb-voltage", 13, NULL, VOLTAGE_TEXT, VOLTAGE_LONGTEXT,
add_integer( "dvb-voltage", 13, VOLTAGE_TEXT, VOLTAGE_LONGTEXT,
true )
add_bool( "dvb-high-voltage", false, NULL, HIGH_VOLTAGE_TEXT,
HIGH_VOLTAGE_LONGTEXT, true )
add_integer( "dvb-tone", -1, NULL, TONE_TEXT, TONE_LONGTEXT,
add_integer( "dvb-tone", -1, TONE_TEXT, TONE_LONGTEXT,
true )
add_integer( "dvb-fec", 9, NULL, FEC_TEXT, FEC_LONGTEXT, true )
add_integer( "dvb-srate", 27500000, NULL, SRATE_TEXT, SRATE_LONGTEXT,
add_integer( "dvb-fec", 9, FEC_TEXT, FEC_LONGTEXT, true )
add_integer( "dvb-srate", 27500000, SRATE_TEXT, SRATE_LONGTEXT,
false )
add_integer( "dvb-lnb-lof1", 0, NULL, LNB_LOF1_TEXT,
add_integer( "dvb-lnb-lof1", 0, LNB_LOF1_TEXT,
LNB_LOF1_LONGTEXT, true )
add_integer( "dvb-lnb-lof2", 0, NULL, LNB_LOF2_TEXT,
add_integer( "dvb-lnb-lof2", 0, LNB_LOF2_TEXT,
LNB_LOF2_LONGTEXT, true )
add_integer( "dvb-lnb-slof", 0, NULL, LNB_SLOF_TEXT,
add_integer( "dvb-lnb-slof", 0, LNB_SLOF_TEXT,
LNB_SLOF_LONGTEXT, true )
/* DVB-C (cable) */
add_integer( "dvb-modulation", 0, NULL, MODULATION_TEXT,
add_integer( "dvb-modulation", 0, MODULATION_TEXT,
MODULATION_LONGTEXT, true )
/* DVB-T (terrestrial) */
add_integer( "dvb-code-rate-hp", 9, NULL, CODE_RATE_HP_TEXT,
add_integer( "dvb-code-rate-hp", 9, CODE_RATE_HP_TEXT,
CODE_RATE_HP_LONGTEXT, true )
add_integer( "dvb-code-rate-lp", 9, NULL, CODE_RATE_LP_TEXT,
add_integer( "dvb-code-rate-lp", 9, CODE_RATE_LP_TEXT,
CODE_RATE_LP_LONGTEXT, true )
add_integer( "dvb-bandwidth", 0, NULL, BANDWIDTH_TEXT, BANDWIDTH_LONGTEXT,
add_integer( "dvb-bandwidth", 0, BANDWIDTH_TEXT, BANDWIDTH_LONGTEXT,
true )
change_safe()
add_integer( "dvb-guard", 0, NULL, GUARD_TEXT, GUARD_LONGTEXT, true )
add_integer( "dvb-transmission", 0, NULL, TRANSMISSION_TEXT,
add_integer( "dvb-guard", 0, GUARD_TEXT, GUARD_LONGTEXT, true )
add_integer( "dvb-transmission", 0, TRANSMISSION_TEXT,
TRANSMISSION_LONGTEXT, true )
add_integer( "dvb-hierarchy", 0, NULL, HIERARCHY_TEXT, HIERARCHY_LONGTEXT,
add_integer( "dvb-hierarchy", 0, HIERARCHY_TEXT, HIERARCHY_LONGTEXT,
true )
#ifdef ENABLE_HTTPD
/* MMI HTTP interface */
......
......@@ -89,9 +89,9 @@ vlc_module_begin ()
set_description( N_("DVDnav Input") )
set_category( CAT_INPUT )
set_subcategory( SUBCAT_INPUT_ACCESS )
add_integer( "dvdnav-angle", 1, NULL, ANGLE_TEXT,
add_integer( "dvdnav-angle", 1, ANGLE_TEXT,
ANGLE_LONGTEXT, false )
add_integer( "dvdnav-caching", DEFAULT_PTS_DELAY / 1000, NULL,
add_integer( "dvdnav-caching", DEFAULT_PTS_DELAY / 1000,
CACHING_TEXT, CACHING_LONGTEXT, true )
add_bool( "dvdnav-menu", true, NULL,
MENU_TEXT, MENU_LONGTEXT, false )
......
......@@ -76,9 +76,9 @@ vlc_module_begin ()
set_description( N_("DVDRead Input (no menu support)") )
set_category( CAT_INPUT )
set_subcategory( SUBCAT_INPUT_ACCESS )
add_integer( "dvdread-angle", 1, NULL, ANGLE_TEXT,
add_integer( "dvdread-angle", 1, ANGLE_TEXT,
ANGLE_LONGTEXT, false )
add_integer( "dvdread-caching", DEFAULT_PTS_DELAY / 1000, NULL,
add_integer( "dvdread-caching", DEFAULT_PTS_DELAY / 1000,
CACHING_TEXT, CACHING_LONGTEXT, true )
add_obsolete_string( "dvdread-css-method" ) /* obsolete since 1.1.0 */
set_capability( "access_demux", 0 )
......
......@@ -69,13 +69,13 @@ vlc_module_begin ()
set_category( CAT_INPUT )
set_subcategory( SUBCAT_INPUT_ACCESS )
add_integer( "eyetv-channel", 0, NULL,
add_integer( "eyetv-channel", 0,
CHANNEL_TEXT, CHANNEL_LONGTEXT, false )
set_capability( "access", 0 )
add_shortcut( "eyetv" )
set_callbacks( Open, Close )
add_integer( "eyetv-caching", DEFAULT_PTS_DELAY / 1000, NULL,
add_integer( "eyetv-caching", DEFAULT_PTS_DELAY / 1000,
CACHING_TEXT, CACHING_LONGTEXT, true);
vlc_module_end ()
......
......@@ -61,10 +61,10 @@ vlc_module_begin ()
set_shortname( N_("File") )
set_category( CAT_INPUT )
set_subcategory( SUBCAT_INPUT_ACCESS )
add_integer( "file-caching", DEFAULT_PTS_DELAY / 1000, NULL,
add_integer( "file-caching", DEFAULT_PTS_DELAY / 1000,
CACHING_TEXT, CACHING_LONGTEXT, true )
change_safe()
add_integer( "network-caching", 3 * DEFAULT_PTS_DELAY / 1000, NULL,
add_integer( "network-caching", 3 * DEFAULT_PTS_DELAY / 1000,
NETWORK_CACHING_TEXT, NETWORK_CACHING_LONGTEXT, true )
change_safe()
add_obsolete_string( "file-cat" )
......
......@@ -75,7 +75,7 @@ vlc_module_begin ()
set_capability( "access", 0 )
set_category( CAT_INPUT )
set_subcategory( SUBCAT_INPUT_ACCESS )
add_integer( "ftp-caching", 2 * DEFAULT_PTS_DELAY / 1000, NULL,
add_integer( "ftp-caching", 2 * DEFAULT_PTS_DELAY / 1000,
CACHING_TEXT, CACHING_LONGTEXT, true )
change_safe()
add_string( "ftp-user", "anonymous", USER_TEXT, USER_LONGTEXT,
......
......@@ -55,7 +55,7 @@ vlc_module_begin ()
set_shortname( "GnomeVFS" )
set_category( CAT_INPUT )
set_subcategory( SUBCAT_INPUT_ACCESS )
add_integer( "gnomevfs-caching", DEFAULT_PTS_DELAY / 1000, NULL, CACHING_TEXT, CACHING_LONGTEXT, true )
add_integer( "gnomevfs-caching", DEFAULT_PTS_DELAY / 1000, CACHING_TEXT, CACHING_LONGTEXT, true )
set_capability( "access", 10 )
add_shortcut( "gnomevfs" )
set_callbacks( Open, Close )
......
......@@ -116,7 +116,7 @@ vlc_module_begin ()
false )
add_password( "http-proxy-pwd", NULL,
PROXY_PASS_TEXT, PROXY_PASS_LONGTEXT, false )
add_integer( "http-caching", 4 * DEFAULT_PTS_DELAY / 1000, NULL,
add_integer( "http-caching", 4 * DEFAULT_PTS_DELAY / 1000,
CACHING_TEXT, CACHING_LONGTEXT, true )
change_safe()
add_string( "http-user-agent", NULL, NULL, NULL, false )
......@@ -129,7 +129,7 @@ vlc_module_begin ()
change_safe()
add_bool( "http-forward-cookies", true, NULL, FORWARD_COOKIES_TEXT,
FORWARD_COOKIES_LONGTEXT, true )
add_integer( "http-max-redirect", 5, NULL, MAX_REDIRECT_TEXT,
add_integer( "http-max-redirect", 5, MAX_REDIRECT_TEXT,
MAX_REDIRECT_LONGTEXT, true )
#ifdef WIN32
add_bool( "http-use-IE-proxy", false, NULL, USE_IE_PROXY_TEXT,
......
......@@ -125,7 +125,7 @@ vlc_module_begin()
set_category(CAT_INPUT)
set_subcategory(SUBCAT_INPUT_ACCESS)
add_integer("imem-caching", DEFAULT_PTS_DELAY / 1000, NULL, CACHING_TEXT, CACHING_LONGTEXT, true)
add_integer("imem-caching", DEFAULT_PTS_DELAY / 1000, CACHING_TEXT, CACHING_LONGTEXT, true)
change_private()
add_string ("imem-get", "0", GET_TEXT, GET_LONGTEXT, true)
change_volatile()
......@@ -137,13 +137,13 @@ vlc_module_begin()
add_string ("imem-data", "0", DATA_TEXT, DATA_LONGTEXT, true)
change_volatile()
add_integer("imem-id", -1, NULL, ID_TEXT, ID_LONGTEXT, true)
add_integer("imem-id", -1, ID_TEXT, ID_LONGTEXT, true)
change_private()
change_safe()
add_integer("imem-group", 0, NULL, GROUP_TEXT, GROUP_LONGTEXT, true)
add_integer("imem-group", 0, GROUP_TEXT, GROUP_LONGTEXT, true)
change_private()
change_safe()
add_integer("imem-cat", 0, NULL, CAT_TEXT, CAT_LONGTEXT, true)
add_integer("imem-cat", 0, CAT_TEXT, CAT_LONGTEXT, true)
change_integer_list(cat_values, cat_texts)
change_private()
change_safe()
......@@ -154,17 +154,17 @@ vlc_module_begin()
change_private()
change_safe()
add_integer("imem-samplerate", 0, NULL, SAMPLERATE_TEXT, SAMPLERATE_LONGTEXT, true)
add_integer("imem-samplerate", 0, SAMPLERATE_TEXT, SAMPLERATE_LONGTEXT, true)
change_private()
change_safe()
add_integer("imem-channels", 0, NULL, CHANNELS_TEXT, CHANNELS_LONGTEXT, true)
add_integer("imem-channels", 0, CHANNELS_TEXT, CHANNELS_LONGTEXT, true)
change_private()
change_safe()
add_integer("imem-width", 0, NULL, WIDTH_TEXT, WIDTH_LONGTEXT, true)
add_integer("imem-width", 0, WIDTH_TEXT, WIDTH_LONGTEXT, true)
change_private()
change_safe()
add_integer("imem-height", 0, NULL, HEIGHT_TEXT, HEIGHT_LONGTEXT, true)
add_integer("imem-height", 0, HEIGHT_TEXT, HEIGHT_LONGTEXT, true)
change_private()
change_safe()
add_string ("imem-dar", NULL, DAR_TEXT, DAR_LONGTEXT, true)
......@@ -174,7 +174,7 @@ vlc_module_begin()
change_private()
change_safe()
add_integer ("imem-size", 0, NULL, SIZE_TEXT, SIZE_LONGTEXT, true)
add_integer ("imem-size", 0, SIZE_TEXT, SIZE_LONGTEXT, true)
change_private()
change_safe()
......
......@@ -74,7 +74,7 @@ vlc_module_begin ()
set_category( CAT_INPUT )
set_subcategory( SUBCAT_INPUT_ACCESS )
add_integer( "jack-input-caching", DEFAULT_PTS_DELAY / 1000, NULL,
add_integer( "jack-input-caching", DEFAULT_PTS_DELAY / 1000,
CACHING_TEXT, CACHING_LONGTEXT, true )
add_bool( "jack-input-use-vlc-pace", false, NULL,
PACE_TEXT, PACE_LONGTEXT, true )
......
......@@ -76,14 +76,14 @@ vlc_module_begin ()
set_category( CAT_INPUT )
set_subcategory( SUBCAT_INPUT_ACCESS )
add_integer( "mms-caching", 19 * DEFAULT_PTS_DELAY / 1000, NULL,
add_integer( "mms-caching", 19 * DEFAULT_PTS_DELAY / 1000,
CACHING_TEXT, CACHING_LONGTEXT, true )
add_integer( "mms-timeout", 5000, NULL, TIMEOUT_TEXT, TIMEOUT_LONGTEXT,
add_integer( "mms-timeout", 5000, TIMEOUT_TEXT, TIMEOUT_LONGTEXT,
true )
add_bool( "mms-all", false, NULL, ALL_TEXT, ALL_LONGTEXT, true )
add_integer( "mms-maxbitrate", 0, NULL, BITRATE_TEXT, BITRATE_LONGTEXT ,
add_integer( "mms-maxbitrate", 0, BITRATE_TEXT, BITRATE_LONGTEXT ,
false )
add_string( "mmsh-proxy", NULL, PROXY_TEXT, PROXY_LONGTEXT,
false )
......
......@@ -88,9 +88,9 @@ vlc_module_begin ()
add_bool( CFG_PREFIX "stereo", true, NULL, STEREO_TEXT, STEREO_LONGTEXT,
true )
add_integer( CFG_PREFIX "samplerate", 48000, NULL, SAMPLERATE_TEXT,
add_integer( CFG_PREFIX "samplerate", 48000, SAMPLERATE_TEXT,
SAMPLERATE_LONGTEXT, true )
add_integer( CFG_PREFIX "caching", DEFAULT_PTS_DELAY / 1000, NULL,
add_integer( CFG_PREFIX "caching", DEFAULT_PTS_DELAY / 1000,
CACHING_TEXT, CACHING_LONGTEXT, true )
vlc_module_end ()
......
......@@ -132,38 +132,38 @@ vlc_module_begin ()
set_capability( "access", 0 )
add_shortcut( "pvr" )
add_integer( "pvr-caching", DEFAULT_PTS_DELAY / 1000, NULL, CACHING_TEXT,
add_integer( "pvr-caching", DEFAULT_PTS_DELAY / 1000, CACHING_TEXT,
CACHING_LONGTEXT, true )
add_string( "pvr-device", "/dev/video0", DEVICE_TEXT,
DEVICE_LONGTEXT, false )
add_string( "pvr-radio-device", "/dev/radio0", RADIO_DEVICE_TEXT,
RADIO_DEVICE_LONGTEXT, false )
add_integer( "pvr-norm", V4L2_STD_UNKNOWN , NULL, NORM_TEXT,
add_integer( "pvr-norm", V4L2_STD_UNKNOWN , NORM_TEXT,
NORM_LONGTEXT, false )
change_integer_list( i_norm_list, psz_norm_list_text )
add_integer( "pvr-width", -1, NULL, WIDTH_TEXT, WIDTH_LONGTEXT, true )
add_integer( "pvr-height", -1, NULL, HEIGHT_TEXT, HEIGHT_LONGTEXT,
add_integer( "pvr-width", -1, WIDTH_TEXT, WIDTH_LONGTEXT, true )
add_integer( "pvr-height", -1, HEIGHT_TEXT, HEIGHT_LONGTEXT,
true )
add_integer( "pvr-frequency", -1, NULL, FREQUENCY_TEXT, FREQUENCY_LONGTEXT,
add_integer( "pvr-frequency", -1, FREQUENCY_TEXT, FREQUENCY_LONGTEXT,
false )
add_integer( "pvr-framerate", -1, NULL, FRAMERATE_TEXT, FRAMERATE_LONGTEXT,
add_integer( "pvr-framerate", -1, FRAMERATE_TEXT, FRAMERATE_LONGTEXT,
true )
add_integer( "pvr-keyint", -1, NULL, KEYINT_TEXT, KEYINT_LONGTEXT,
add_integer( "pvr-keyint", -1, KEYINT_TEXT, KEYINT_LONGTEXT,
true )
add_integer( "pvr-bframes", -1, NULL, FRAMERATE_TEXT, FRAMERATE_LONGTEXT,
add_integer( "pvr-bframes", -1, FRAMERATE_TEXT, FRAMERATE_LONGTEXT,
true )
add_integer( "pvr-bitrate", -1, NULL, BITRATE_TEXT, BITRATE_LONGTEXT,
add_integer( "pvr-bitrate", -1, BITRATE_TEXT, BITRATE_LONGTEXT,
false )
add_integer( "pvr-bitrate-peak", -1, NULL, BITRATE_PEAK_TEXT,
add_integer( "pvr-bitrate-peak", -1, BITRATE_PEAK_TEXT,
BITRATE_PEAK_LONGTEXT, true )
add_integer( "pvr-bitrate-mode", -1, NULL, BITRATE_MODE_TEXT,
add_integer( "pvr-bitrate-mode", -1, BITRATE_MODE_TEXT,
BITRATE_MODE_LONGTEXT, true )
change_integer_list( i_bitrates, psz_bitrates_list_text )
add_integer( "pvr-audio-bitmask", -1, NULL, BITMASK_TEXT,
add_integer( "pvr-audio-bitmask", -1, BITMASK_TEXT,
BITMASK_LONGTEXT, true )
add_integer( "pvr-audio-volume", -1, NULL, VOLUME_TEXT,
add_integer( "pvr-audio-volume", -1, VOLUME_TEXT,
VOLUME_LONGTEXT, true )
add_integer( "pvr-channel", -1, NULL, CHAN_TEXT, CHAN_LONGTEXT, true )
add_integer( "pvr-channel", -1, CHAN_TEXT, CHAN_LONGTEXT, true )
set_callbacks( Open, Close )
vlc_module_end ()
......
......@@ -64,7 +64,7 @@ vlc_module_begin ()
set_category( CAT_INPUT )
set_subcategory( SUBCAT_INPUT_ACCESS )
add_integer( "rtmp-caching", DEFAULT_PTS_DELAY / 1000, NULL, CACHING_TEXT,
add_integer( "rtmp-caching", DEFAULT_PTS_DELAY / 1000, CACHING_TEXT,
CACHING_LONGTEXT, true )
add_string( "rtmp-swfurl", "file:///player.swf", SWFURL_TEXT,
SWFURL_LONGTEXT, true )
......
......@@ -89,11 +89,11 @@ vlc_module_begin ()
set_capability ("access_demux", 0)
set_callbacks (Open, Close)
add_integer ("rtp-caching", 1000, NULL, RTP_CACHING_TEXT,
add_integer ("rtp-caching", 1000, RTP_CACHING_TEXT,
RTP_CACHING_LONGTEXT, true)
change_integer_range (0, 65535)
change_safe ()
add_integer ("rtcp-port", 0, NULL, RTCP_PORT_TEXT,
add_integer ("rtcp-port", 0, RTCP_PORT_TEXT,
RTCP_PORT_LONGTEXT, false)
change_integer_range (0, 65535)
change_safe ()
......@@ -103,15 +103,15 @@ vlc_module_begin ()
add_string ("srtp-salt", "",
SRTP_SALT_TEXT, SRTP_SALT_LONGTEXT, false)
#endif
add_integer ("rtp-max-src", 1, NULL, RTP_MAX_SRC_TEXT,
add_integer ("rtp-max-src", 1, RTP_MAX_SRC_TEXT,
RTP_MAX_SRC_LONGTEXT, true)
change_integer_range (1, 255)
add_integer ("rtp-timeout", 5, NULL, RTP_TIMEOUT_TEXT,
add_integer ("rtp-timeout", 5, RTP_TIMEOUT_TEXT,
RTP_TIMEOUT_LONGTEXT, true)
add_integer ("rtp-max-dropout", 3000, NULL, RTP_MAX_DROPOUT_TEXT,
add_integer ("rtp-max-dropout", 3000, RTP_MAX_DROPOUT_TEXT,
RTP_MAX_DROPOUT_LONGTEXT, true)
change_integer_range (0, 32767)
add_integer ("rtp-max-misorder", 100, NULL, RTP_MAX_MISORDER_TEXT,
add_integer ("rtp-max-misorder", 100, RTP_MAX_MISORDER_TEXT,
RTP_MAX_MISORDER_LONGTEXT, true)
change_integer_range (0, 32767)
......
......@@ -53,7 +53,7 @@ vlc_module_begin ()
set_shortname( N_("Real RTSP") )
set_category( CAT_INPUT )
set_subcategory( SUBCAT_INPUT_ACCESS )
add_integer( "realrtsp-caching", 3000, NULL,
add_integer( "realrtsp-caching", 3000,
CACHING_TEXT, CACHING_LONGTEXT, true )
change_safe()
set_capability( "access", 10 )
......
......@@ -97,15 +97,15 @@ vlc_module_begin ()
set_category( CAT_INPUT )