summaryrefslogtreecommitdiffstats
path: root/video/filter
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2013-03-01 11:17:33 +0100
committerwm4 <wm4@nowhere>2013-03-01 11:17:33 +0100
commit9d8bb0fbf62f3113c2a522f711addea9b0fe9797 (patch)
tree766b0da6b9b84ff21a1caaefd71b971dfe7e2dc5 /video/filter
parentd511ef79a09fa9e42479e66f4837daaa68b7255b (diff)
downloadmpv-9d8bb0fbf62f3113c2a522f711addea9b0fe9797.tar.bz2
mpv-9d8bb0fbf62f3113c2a522f711addea9b0fe9797.tar.xz
vf_vo: remove pointless NULL checks
The filter refuses to initialize if the video_out is NULL.
Diffstat (limited to 'video/filter')
-rw-r--r--video/filter/vf_vo.c4
1 files changed, 0 insertions, 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;