summaryrefslogtreecommitdiffstats
path: root/video/filter/vf_scale.c
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2013-12-07 19:33:38 +0100
committerwm4 <wm4@nowhere>2013-12-07 19:33:38 +0100
commit37fbef2ccb3c828dd41f6e15ccf635e697e4011f (patch)
treecb3ff81605d7aa6ea147ba7b24fc2e310b83d04f /video/filter/vf_scale.c
parent0af9ede5466fa5b02348d5cfb3182f80771a5f38 (diff)
downloadmpv-37fbef2ccb3c828dd41f6e15ccf635e697e4011f.tar.bz2
mpv-37fbef2ccb3c828dd41f6e15ccf635e697e4011f.tar.xz
video/filter: make vf->control non-recursive
Reason: I never liked it being recursive. Generally, this seems to cause more problems than trouble, and is less flexible for access outside of the chain.
Diffstat (limited to 'video/filter/vf_scale.c')
-rw-r--r--video/filter/vf_scale.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/video/filter/vf_scale.c b/video/filter/vf_scale.c
index d57ea07df7..c466c5d39a 100644
--- a/video/filter/vf_scale.c
+++ b/video/filter/vf_scale.c
@@ -364,11 +364,9 @@ static int control(struct vf_instance *vf, int request, void *data)
if (mp_sws_set_vf_equalizer(sws, data) < 1)
break;
return CONTROL_TRUE;
- default:
- break;
}
- return vf_next_control(vf, request, data);
+ return CONTROL_UNKNOWN;
}
//===========================================================================//