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

DTV: don't use NULL for config items

parent 1d63113c
...@@ -192,7 +192,7 @@ static const char *const satno_user[] = { N_("Unspecified"), ...@@ -192,7 +192,7 @@ static const char *const satno_user[] = { N_("Unspecified"),
#endif #endif
/* BDA module additional DVB-S Parameters */ /* BDA module additional DVB-S Parameters */
#define NETID_TEXT N_("Network Identifier") #define NETID_TEXT N_("Network identifier")
#define AZIMUTH_TEXT N_("Satellite azimuth") #define AZIMUTH_TEXT N_("Satellite azimuth")
#define AZIMUTH_LONGTEXT N_("Satellite azimuth in tenths of degree") #define AZIMUTH_LONGTEXT N_("Satellite azimuth in tenths of degree")
#define ELEVATION_TEXT N_("Satellite elevation") #define ELEVATION_TEXT N_("Satellite elevation")
...@@ -242,9 +242,9 @@ vlc_module_begin () ...@@ -242,9 +242,9 @@ vlc_module_begin ()
#endif #endif
#ifdef WIN32 #ifdef WIN32
add_integer ("dvb-adapter", -1, ADAPTER_TEXT, ADAPTER_LONGTEXT, true) add_integer ("dvb-adapter", -1, ADAPTER_TEXT, ADAPTER_LONGTEXT, true)
add_string ("dvb-network-name", NULL, NAME_TEXT, NAME_LONGTEXT, true) add_string ("dvb-network-name", "", NAME_TEXT, NAME_LONGTEXT, true)
/* Hmm: is this one really safe??: */ /* Hmm: is this one really safe??: */
add_string ("dvb-create-name", NULL, CREATE_TEXT, CREATE_LONGTEXT, true) add_string ("dvb-create-name", "", CREATE_TEXT, CREATE_LONGTEXT, true)
change_private () change_private ()
#endif #endif
add_integer ("dvb-frequency", 0, FREQ_TEXT, FREQ_LONGTEXT, false) add_integer ("dvb-frequency", 0, FREQ_TEXT, FREQ_LONGTEXT, false)
...@@ -327,11 +327,11 @@ vlc_module_begin () ...@@ -327,11 +327,11 @@ vlc_module_begin ()
change_integer_list (auto_off_on_vlc, auto_off_on_user) change_integer_list (auto_off_on_vlc, auto_off_on_user)
#endif #endif
#ifdef WIN23 #ifdef WIN23
add_integer ("dvb-network-id", 0, NETID_TEXT, NULL, true) add_integer ("dvb-network-id", 0, NETID_TEXT, NETID_TEXT, true)
add_integer ("dvb-azimuth", 0, AZIMUTH_TEXT, AZIMUTH_LONGTEXT, true) add_integer ("dvb-azimuth", 0, AZIMUTH_TEXT, AZIMUTH_LONGTEXT, true)
add_integer ("dvb-elevation", 0, ELEVATION_TEXT, ELEVATION_LONGTEXT, true) add_integer ("dvb-elevation", 0, ELEVATION_TEXT, ELEVATION_LONGTEXT, true)
add_integer ("dvb-longitude", 0, LONGITUDE_TEXT, LONGITUDE_LONGTEXT, true) add_integer ("dvb-longitude", 0, LONGITUDE_TEXT, LONGITUDE_LONGTEXT, true)
add_string ("dvb-range", NULL, RANGE_TEXT, RANGE_LONGTEXT, true) add_string ("dvb-range", "", RANGE_TEXT, RANGE_LONGTEXT, true)
/* dvb-range corresponds to the BDA InputRange parameter which is /* dvb-range corresponds to the BDA InputRange parameter which is
* used by some drivers to control the diseqc */ * used by some drivers to control the diseqc */
......
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