From 9d8bb0fbf62f3113c2a522f711addea9b0fe9797 Mon Sep 17 00:00:00 2001 From: wm4 Date: Fri, 1 Mar 2013 11:17:33 +0100 Subject: [PATCH] vf_vo: remove pointless NULL checks The filter refuses to initialize if the video_out is NULL. --- video/filter/vf_vo.c | 4 ---- 1 file changed, 4 deletions(-) diff --git a/video/filter/vf_vo.c b/video/filter/vf_vo.c index 922229aa53..5edd2956c6 100644 --- a/video/filter/vf_vo.c +++ b/video/filter/vf_vo.c @@ -70,12 +70,8 @@ static int control(struct vf_instance *vf, int request, void *data) { switch (request) { case VFCTRL_GET_DEINTERLACE: - if (!video_out) - return CONTROL_FALSE; // vo not configured? return vo_control(video_out, VOCTRL_GET_DEINTERLACE, data) == VO_TRUE; case VFCTRL_SET_DEINTERLACE: - if (!video_out) - return CONTROL_FALSE; // vo not configured? return vo_control(video_out, VOCTRL_SET_DEINTERLACE, data) == VO_TRUE; case VFCTRL_GET_YUV_COLORSPACE: return vo_control(video_out, VOCTRL_GET_YUV_COLORSPACE, data) == true;