Commit aaef11b8 authored by Jean-Baptiste Kempf's avatar Jean-Baptiste Kempf

Swscale: init the pf_video_filter after possible fails

parent de52f56a
......@@ -152,8 +152,6 @@ static int OpenScaler( vlc_object_t *p_this )
&p_filter->fmt_out.video, 0 ) )
return VLC_EGENERIC;
/* */
p_filter->pf_video_filter = Filter;
/* Allocate the memory needed to store the decoder's structure */
if( ( p_filter->p_sys = p_sys = calloc(1, sizeof(filter_sys_t)) ) == NULL )
return VLC_ENOMEM;
......@@ -191,6 +189,9 @@ static int OpenScaler( vlc_object_t *p_this )
return VLC_EGENERIC;
}
/* */
p_filter->pf_video_filter = Filter;
msg_Dbg( p_filter, "%ix%i (%ix%i) chroma: %4.4s -> %ix%i (%ix%i) chroma: %4.4s with scaling using %s",
p_filter->fmt_in.video.i_visible_width, p_filter->fmt_in.video.i_visible_height,
p_filter->fmt_in.video.i_width, p_filter->fmt_in.video.i_height,
......
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