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

clone: add range for --clone-count

(to set lower bound).
parent 4657a09c
No related branches found
No related tags found
No related merge requests found
......@@ -58,6 +58,7 @@ vlc_module_begin ()
set_subcategory( SUBCAT_VIDEO_SPLITTER )
add_integer( CFG_PREFIX "count", 2, COUNT_TEXT, COUNT_LONGTEXT )
change_integer_range( 1, INT_MAX )
add_module_list(CFG_PREFIX "vout-list", "vout display", NULL,
VOUTLIST_TEXT, VOUTLIST_LONGTEXT)
......@@ -127,8 +128,6 @@ static int Open( vlc_object_t *p_this )
/* No list was specified. We will use the default vout, and get
* the number of clones from clone-count */
p_splitter->i_output = var_CreateGetInteger( p_splitter, CFG_PREFIX "count" );
if( p_splitter->i_output <= 0 )
p_splitter->i_output = 1;
p_splitter->p_output = calloc( p_splitter->i_output,
sizeof(*p_splitter->p_output) );
......
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