vf_vo: remove pointless NULL checks

The filter refuses to initialize if the video_out is NULL.
This commit is contained in:
wm4 2013-03-01 11:17:33 +01:00
parent d511ef79a0
commit 9d8bb0fbf6
1 changed files with 0 additions and 4 deletions

View File

@ -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;