From 2d0a9c7af081f90d21cc811871bd67bbb6dcfd94 Mon Sep 17 00:00:00 2001 From: wm4 Date: Thu, 5 Dec 2013 22:56:43 +0100 Subject: video/filter: remove unneeded config callbacks They didn't do anything. vf_screenshot.c actually did release the previous image, but that's not really required. At worst you could take a screenshot and get an old frame when there's no new frame yet. --- video/filter/vf_noise.c | 8 -------- 1 file changed, 8 deletions(-) (limited to 'video/filter/vf_noise.c') diff --git a/video/filter/vf_noise.c b/video/filter/vf_noise.c index d6a845c31f..3160907e19 100644 --- a/video/filter/vf_noise.c +++ b/video/filter/vf_noise.c @@ -324,13 +324,6 @@ static void donoise(uint8_t *dst, uint8_t *src, int dstStride, int srcStride, in if (fp->shiftptr == 3) fp->shiftptr = 0; } -static int config(struct vf_instance *vf, - int width, int height, int d_width, int d_height, - unsigned int flags, unsigned int outfmt){ - - return vf_next_config(vf,width,height,d_width,d_height,flags,outfmt); -} - static struct mp_image *filter(struct vf_instance *vf, struct mp_image *mpi) { struct mp_image *dmpi = mpi; @@ -393,7 +386,6 @@ static const unsigned int fmt_list[]={ }; static int vf_open(vf_instance_t *vf){ - vf->config=config; vf->filter=filter; vf->query_format=query_format; vf->uninit=uninit; -- cgit v1.2.3