Skip to content
Snippets Groups Projects
Commit 5802f57c authored by Lyndon Brown's avatar Lyndon Brown Committed by Jean-Baptiste Kempf
Browse files

cmdline: add missing float case

i don't believe we have any short options assigned to float options
currently, but we should have this case here prepared to handle it.
parent 4e691ef9
No related branches found
No related tags found
No related merge requests found
......@@ -276,6 +276,10 @@ int config_LoadCmdLine( vlc_object_t *p_this, int i_argc,
strtoll(state.arg, NULL, 0) );
}
break;
case CONFIG_ITEM_FLOAT:
var_Create( p_this, name, VLC_VAR_FLOAT );
var_SetFloat( p_this, name, us_atof(state.arg) );
break;
case CONFIG_ITEM_BOOL:
var_Create( p_this, name, VLC_VAR_BOOL );
var_SetBool( p_this, name, true );
......
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