Commit 6e5e0867 authored by Thomas Guillem's avatar Thomas Guillem

chroma: chain: force one level of iteration for filters

parent 2fd76d91
......@@ -192,6 +192,11 @@ static int ActivateFilter( vlc_object_t *p_this )
if( !p_filter->b_allow_fmt_out_change || p_filter->psz_name == NULL )
return VLC_EGENERIC;
/* Force only one level of iteration when using the chain converter from a
* filter. */
var_Create( p_filter, MODULE_STRING "-level", VLC_VAR_INTEGER );
var_SetInteger( p_filter, MODULE_STRING "-level", CHAIN_LEVEL_MAX - 1 );
/* Try to add a converter before the requested filter */
return Activate( p_filter, BuildFilterChain );
}
......
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