Commit 81333241 authored by Gildas Bazin's avatar Gildas Bazin

* src/input/input_programs.c: if no program is specified by the user, don't add any to the list.

parent 42eca57f
...@@ -91,8 +91,11 @@ int input_InitStream( input_thread_t * p_input, size_t i_data_len ) ...@@ -91,8 +91,11 @@ int input_InitStream( input_thread_t * p_input, size_t i_data_len )
var_Set( p_input, "intf-change", val ); var_Set( p_input, "intf-change", val );
/* Create a few object variables used for navigation in the interfaces */ /* Create a few object variables used for navigation in the interfaces */
var_Create( p_input, "program", VLC_VAR_INTEGER | VLC_VAR_HASCHOICE var_Create( p_input, "program", VLC_VAR_INTEGER | VLC_VAR_HASCHOICE |
| VLC_VAR_DOINHERIT ); VLC_VAR_DOINHERIT );
var_Get( p_input, "program", &val );
if( val.i_int <= 0 )
var_Change( p_input, "program", VLC_VAR_DELCHOICE, &val, NULL );
text.psz_string = _("Program"); text.psz_string = _("Program");
var_Change( p_input, "program", VLC_VAR_SETTEXT, &text, NULL ); var_Change( p_input, "program", VLC_VAR_SETTEXT, &text, NULL );
......
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