Commit 2aaca35c authored by Thomas Guillem's avatar Thomas Guillem

chroma: chain: fix "force one level of iteration for filters"

This commit fixes a regression from 6e5e0867
that caused filter loading to never stop until a stack overflow.
parent a1bcc485
......@@ -195,6 +195,8 @@ static int ActivateFilter( vlc_object_t *p_this )
/* Force only one level of iteration when using the chain converter from a
* filter. */
if( var_InheritInteger( p_filter, "chain-level" ) > 0 )
return VLC_EGENERIC;
var_Create( p_filter, "chain-level", VLC_VAR_INTEGER );
var_SetInteger( p_filter, "chain-level", CHAIN_LEVEL_MAX - 1 );
......
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