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

Ensure string list always has text

parent 8e3dd711
......@@ -152,7 +152,7 @@ vlc_module_begin ()
FLOAT_LONGTEXT, true )
add_string( "directx-audio-speaker", "Windows default",
SPEAKER_TEXT, SPEAKER_LONGTEXT, true )
change_string_list( speaker_list, 0, 0 )
change_string_list( speaker_list, speaker_list, NULL )
add_integer( "directx-volume", DSBVOLUME_MAX,
VOLUME_TEXT, VOLUME_LONGTEXT, true )
change_integer_range( DSBVOLUME_MIN, DSBVOLUME_MAX )
......
......@@ -113,7 +113,7 @@ vlc_module_begin ()
FILE_LONGTEXT, false )
add_string( "audiofile-format", "s16",
FORMAT_TEXT, FORMAT_TEXT, true )
change_string_list( format_list, 0, 0 )
change_string_list( format_list, format_list, NULL )
add_integer( "audiofile-channels", 0,
CHANNELS_TEXT, CHANNELS_LONGTEXT, true )
change_integer_range( 0, 6 )
......
......@@ -79,7 +79,7 @@ vlc_module_begin ()
SUB_DELAY_LONGTEXT, true )
add_string( "sub-type", "auto", N_("Subtitles format"),
SUB_TYPE_LONGTEXT, true )
change_string_list( ppsz_sub_type, NULL, NULL )
change_string_list( ppsz_sub_type, ppsz_sub_type, NULL )
add_string( "sub-description", NULL, N_("Subtitles description"),
SUB_DESCRIPTION_LONGTEXT, true )
set_callbacks( Open, Close )
......
......@@ -176,7 +176,7 @@ vlc_module_begin ()
add_string( SOUT_CFG_PREFIX "deinterlace-module", "deinterlace",
DEINTERLACE_MODULE_TEXT, DEINTERLACE_MODULE_LONGTEXT,
false )
change_string_list( ppsz_deinterlace_type, 0, 0 )
change_string_list( ppsz_deinterlace_type, ppsz_deinterlace_type, NULL )
add_integer( SOUT_CFG_PREFIX "width", 0, WIDTH_TEXT,
WIDTH_LONGTEXT, true )
add_integer( SOUT_CFG_PREFIX "height", 0, HEIGHT_TEXT,
......
......@@ -1589,7 +1589,7 @@ vlc_module_begin ()
SNAP_PREFIX_LONGTEXT, false )
add_string( "snapshot-format", "png", SNAP_FORMAT_TEXT,
SNAP_FORMAT_LONGTEXT, false )
change_string_list( ppsz_snap_formats, NULL, 0 )
change_string_list( ppsz_snap_formats, ppsz_snap_formats, NULL )
add_bool( "snapshot-preview", true, SNAP_PREVIEW_TEXT,
SNAP_PREVIEW_LONGTEXT, false )
add_bool( "snapshot-sequential", false, SNAP_SEQUENTIAL_TEXT,
......
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