Commit 6b82bfdd authored by Steve Lhomme's avatar Steve Lhomme Committed by Jean-Baptiste Kempf

video_filter:edgedetection: no need for an intermediate variable

the value is forced later in the code
Signed-off-by: Jean-Baptiste Kempf's avatarJean-Baptiste Kempf <>
parent 9d4b0408
......@@ -94,7 +94,6 @@ struct filter_sys_t
static int Open( vlc_object_t *p_this )
int i_ret;
es_format_t fmt;
filter_t *p_filter = (filter_t *)p_this;
filter_owner_t owner = {
.sys = p_filter,
......@@ -111,9 +110,8 @@ static int Open( vlc_object_t *p_this )
free( p_filter->p_sys );
es_format_Copy( &fmt, &p_filter->fmt_in );
/* Clear filter chain */
filter_chain_Reset( (filter_chain_t *)p_filter->p_sys, &p_filter->fmt_in, &fmt);
filter_chain_Reset( (filter_chain_t *)p_filter->p_sys, &p_filter->fmt_in, &p_filter->fmt_in);
/* Add adjust filter to turn frame black-and-white */
i_ret = filter_chain_AppendFromString( (filter_chain_t *)p_filter->p_sys,
"adjust{saturation=0}" );
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