Skip to content
Snippets Groups Projects
Commit 530f7860 authored by Lyndon Brown's avatar Lyndon Brown
Browse files

cdda+vcd: fix confusing help text output

usage hint is the wrong thing to use, help text is the right thing;
this mistake is the cause of confusing help output due to the fact that
usage hints are printed exactly the same as a plugin/module heading.
parent 98c824ab
No related branches found
No related tags found
No related merge requests found
......@@ -991,9 +991,12 @@ static void Close(vlc_object_t *obj)
# endif
#endif
#define HELP_TEXT N_("Usage hint: [cdda:][device][@[track]]")
vlc_module_begin ()
set_shortname( N_("Audio CD") )
set_description( N_("Audio CD input") )
set_help( HELP_TEXT )
set_capability( "access", 0 )
set_category( CAT_INPUT )
set_subcategory( SUBCAT_INPUT_ACCESS )
......@@ -1001,7 +1004,6 @@ vlc_module_begin ()
add_loadfile("cd-audio", CD_DEVICE, CDAUDIO_DEV_TEXT, CDAUDIO_DEV_LONGTEXT)
add_usage_hint( N_("[cdda:][device][@[track]]") )
add_integer( "cdda-track", 0 , NULL, NULL, true )
change_volatile ()
add_integer( "cdda-first-sector", -1, NULL, NULL, true )
......
......@@ -42,15 +42,17 @@
static int Open ( vlc_object_t * );
static void Close( vlc_object_t * );
#define HELP_TEXT N_("Usage hint: [vcd:][device][#[title][,[chapter]]]")
vlc_module_begin ()
set_shortname( N_("VCD"))
set_description( N_("VCD input") )
set_help( HELP_TEXT )
set_capability( "access", 0 )
set_callbacks( Open, Close )
set_category( CAT_INPUT )
set_subcategory( SUBCAT_INPUT_ACCESS )
add_usage_hint( N_("[vcd:][device][#[title][,[chapter]]]") )
add_shortcut( "vcd", "svcd" )
vlc_module_end ()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment