Commit 05f9c0ac authored by David Fuhrmann's avatar David Fuhrmann

puzzle: row and col values of 1 are not supported

parent e378fa45
......@@ -355,9 +355,9 @@ static int PuzzleCallback( vlc_object_t *p_this, char const *psz_var,
filter_sys_t *p_sys = p_data;
if( !strcmp( psz_var, CFG_PREFIX "rows" ) )
atomic_store( &p_sys->change.i_rows, __MAX( 1, newval.i_int ) );
atomic_store( &p_sys->change.i_rows, __MAX( 2, newval.i_int ) );
else if( !strcmp( psz_var, CFG_PREFIX "cols" ) )
atomic_store( &p_sys->change.i_cols, __MAX( 1, newval.i_int ) );
atomic_store( &p_sys->change.i_cols, __MAX( 2, newval.i_int ) );
else if( !strcmp( psz_var, CFG_PREFIX "black-slot" ) )
atomic_store( &p_sys->change.b_blackslot, newval.b_bool );
atomic_flag_clear( &p_sys->change.b_uptodate );
......
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