summaryrefslogtreecommitdiffstats
path: root/video/filter/vf_vo.c
diff options
context:
space:
mode:
Diffstat (limited to 'video/filter/vf_vo.c')
-rw-r--r--video/filter/vf_vo.c12
1 files changed, 2 insertions, 10 deletions
diff --git a/video/filter/vf_vo.c b/video/filter/vf_vo.c
index 731d1bbcff..93ca91b2b1 100644
--- a/video/filter/vf_vo.c
+++ b/video/filter/vf_vo.c
@@ -105,8 +105,8 @@ static int control(struct vf_instance *vf, int request, void *data)
}
case VFCTRL_HWDEC_DECODER_RENDER:
return vo_control(video_out, VOCTRL_HWDEC_DECODER_RENDER, data);
- case VFCTRL_HWDEC_GET_SURFACE:
- return vo_control(video_out, VOCTRL_HWDEC_GET_SURFACE, data);
+ case VFCTRL_HWDEC_ALLOC_SURFACE:
+ return vo_control(video_out, VOCTRL_HWDEC_ALLOC_SURFACE, data);
}
return CONTROL_UNKNOWN;
}
@@ -121,13 +121,6 @@ static int query_format(struct vf_instance *vf, unsigned int fmt)
return flags;
}
-static int put_image(struct vf_instance *vf, mp_image_t *mpi, double pts)
-{
- if (!video_out->config_ok)
- return 0;
- return vo_draw_image(video_out, mpi, pts);
-}
-
static void uninit(struct vf_instance *vf)
{
if (vf->priv) {
@@ -143,7 +136,6 @@ static int vf_open(vf_instance_t *vf, char *args)
vf->config = config;
vf->control = control;
vf->query_format = query_format;
- vf->put_image = put_image;
vf->uninit = uninit;
vf->priv = calloc(1, sizeof(struct vf_priv_s));
vf->priv->vo = (struct vo *)args;