Commit cb1a03c6 authored by Andre Pang's avatar Andre Pang

* modules/video_filter/scale.c: Guard against p_pic->pf_release being NULL,...

* modules/video_filter/scale.c: Guard against p_pic->pf_release being NULL, which can happen e.g. if an unknown chroma is passed to the video output/filter

parent 194efa92
......@@ -114,7 +114,8 @@ static picture_t *Filter( filter_t *p_filter, picture_t *p_pic )
if( !p_pic_dst )
{
msg_Warn( p_filter, "can't get output picture" );
p_pic->pf_release( p_pic );
if( p_pic->pf_release )
p_pic->pf_release( p_pic );
return NULL;
}
......
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