summaryrefslogtreecommitdiffstats
path: root/libmpcodecs/dec_video.c
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2012-08-01 17:07:35 +0200
committerwm4 <wm4@nowhere>2012-08-01 17:07:35 +0200
commitc92538dfaa5eb7e9b2773f158cbb310545116abe (patch)
tree4b1ab99a17cbead6ff1b7bf9714642540cd66ce4 /libmpcodecs/dec_video.c
parent7175f178de72bb4f31cacd79b395a14beaf2f65a (diff)
downloadmpv-c92538dfaa5eb7e9b2773f158cbb310545116abe.tar.bz2
mpv-c92538dfaa5eb7e9b2773f158cbb310545116abe.tar.xz
Remove dead code
This was done with the help of callcatcher [1]. Only functions which are statically known to be unused are removed. Some unused functions are not removed yet, because they might be needed in the near future (such as open_output_stream for the encode branch). There is one user visible change: the --subcc option did nothing, and is removed with this commit. [1] http://www.skynet.ie/~caolan/Packages/callcatcher.html
Diffstat (limited to 'libmpcodecs/dec_video.c')
-rw-r--r--libmpcodecs/dec_video.c13
1 files changed, 0 insertions, 13 deletions
diff --git a/libmpcodecs/dec_video.c b/libmpcodecs/dec_video.c
index 804b4d60b4..148514db95 100644
--- a/libmpcodecs/dec_video.c
+++ b/libmpcodecs/dec_video.c
@@ -72,19 +72,6 @@ int get_video_quality_max(sh_video_t *sh_video)
return 0;
}
-void set_video_quality(sh_video_t *sh_video, int quality)
-{
- vf_instance_t *vf = sh_video->vfilter;
- if (vf) {
- int ret = vf->control(vf, VFCTRL_SET_PP_LEVEL, (void *) (&quality));
- if (ret == CONTROL_TRUE)
- return; // success
- }
- const struct vd_functions *vd = sh_video->vd_driver;
- if (vd)
- vd->control(sh_video, VDCTRL_SET_PP_LEVEL, (void *) (&quality));
-}
-
int set_video_colors(sh_video_t *sh_video, const char *item, int value)
{
vf_instance_t *vf = sh_video->vfilter;