summaryrefslogtreecommitdiffstats
path: root/video/filter/vf_pp.c
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2013-11-23 21:30:56 +0100
committerwm4 <wm4@nowhere>2013-11-23 21:30:56 +0100
commit25855059af0778c99f7eefeae64c007ed6efe1bb (patch)
treeb96e9e01a9b2283477284cadf72fcc5c70479c25 /video/filter/vf_pp.c
parent82605903469798f701706d8522ef8f461514ed08 (diff)
downloadmpv-25855059af0778c99f7eefeae64c007ed6efe1bb.tar.bz2
mpv-25855059af0778c99f7eefeae64c007ed6efe1bb.tar.xz
video: remove vf_pp auto-insertion
This drops the --pp option, which was probably broken for a while. The option automatically inserted the "pp" filter. The value passed to it was ignored (which is probably broken, it always selected maximal quality). Inserting this filter can be done simply with --vf=pp, so this is not needed anymore.
Diffstat (limited to 'video/filter/vf_pp.c')
-rw-r--r--video/filter/vf_pp.c12
1 files changed, 0 insertions, 12 deletions
diff --git a/video/filter/vf_pp.c b/video/filter/vf_pp.c
index c34252a3ef..68ec22bd22 100644
--- a/video/filter/vf_pp.c
+++ b/video/filter/vf_pp.c
@@ -84,17 +84,6 @@ static int query_format(struct vf_instance *vf, unsigned int fmt){
return 0;
}
-static int control(struct vf_instance *vf, int request, void* data){
- switch(request){
- case VFCTRL_QUERY_MAX_PP_LEVEL:
- return PP_QUALITY_MAX;
- case VFCTRL_SET_PP_LEVEL:
- vf->priv->pp= *((unsigned int*)data);
- return CONTROL_TRUE;
- }
- return vf_next_control(vf,request,data);
-}
-
static struct mp_image *filter(struct vf_instance *vf, struct mp_image *mpi)
{
// pass-through if pp disabled
@@ -143,7 +132,6 @@ static int vf_open(vf_instance_t *vf, char *args){
int i;
vf->query_format=query_format;
- vf->control=control;
vf->config=config;
vf->filter=filter;
vf->uninit=uninit;