mirror of https://github.com/mpv-player/mpv
vf_vo: remove pointless NULL checks
The filter refuses to initialize if the video_out is NULL.
This commit is contained in:
parent
d511ef79a0
commit
9d8bb0fbf6
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue