From: Laurent Aimar Date: Sun, 11 Jul 2010 17:01:51 +0000 (+0200) Subject: Cosmetics. X-Git-Tag: 1.2.0-pre1~5850 X-Git-Url: https://git.sesse.net/?a=commitdiff_plain;h=ce1b1bda347a6e4540b8c418b70f2b46f34726c7;p=vlc Cosmetics. --- diff --git a/modules/video_filter/deinterlace.c b/modules/video_filter/deinterlace.c index 11a0c49478..13b4e0614a 100644 --- a/modules/video_filter/deinterlace.c +++ b/modules/video_filter/deinterlace.c @@ -1567,9 +1567,7 @@ static picture_t *Deinterlace( filter_t *p_filter, picture_t *p_pic ) RenderLinear( p_filter, pp_outpic[1], p_pic, p_pic->b_top_field_first ); #endif msg_Err( p_filter, "doubling the frame rate is not supported yet" ); - picture_Release( p_pic_dst ); - picture_Release( p_pic ); - return NULL; + goto drop; case DEINTERLACE_MEAN: RenderMean( p_filter, p_pic_dst, p_pic ); @@ -1585,26 +1583,25 @@ static picture_t *Deinterlace( filter_t *p_filter, picture_t *p_pic ) case DEINTERLACE_YADIF: if( RenderYadif( p_filter, p_pic_dst, p_pic, 0, 0 ) ) - { - picture_Release( p_pic_dst ); - picture_Release( p_pic ); - return NULL; - } + goto drop; break; case DEINTERLACE_YADIF2X: msg_Err( p_filter, "doubling the frame rate is not supported yet" ); //RenderYadif( p_vout, pp_outpic[0], p_pic, 0, !p_pic->b_top_field_first ); //RenderYadif( p_vout, pp_outpic[1], p_pic, 1, p_pic->b_top_field_first ); - picture_Release( p_pic_dst ); - picture_Release( p_pic ); - return NULL; + goto drop; } p_pic_dst->b_progressive = true; picture_Release( p_pic ); return p_pic_dst; + +drop: + picture_Release( p_pic_dst ); + picture_Release( p_pic ); + return NULL; } static void Flush( filter_t *p_filter )