From 0af9ede5466fa5b02348d5cfb3182f80771a5f38 Mon Sep 17 00:00:00 2001 From: wm4 Date: Sat, 7 Dec 2013 19:33:11 +0100 Subject: vf: remove flags from filter format status I don't think we need these flags anymore. Simplify the code and get rid of the vf_format struct. There still is the vf_format.configured field, but this can be replaced by checking for a valid image format. --- video/filter/vf_lavfi.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'video/filter/vf_lavfi.c') diff --git a/video/filter/vf_lavfi.c b/video/filter/vf_lavfi.c index c5fe973d2b..13f7aa3867 100644 --- a/video/filter/vf_lavfi.c +++ b/video/filter/vf_lavfi.c @@ -306,10 +306,9 @@ static int filter_ext(struct vf_instance *vf, struct mp_image *mpi) static void reset(vf_instance_t *vf) { struct vf_priv_s *p = vf->priv; - if (p->graph) { - struct mp_image_params *f = &vf->fmt_in.params; + struct mp_image_params *f = &vf->fmt_in; + if (p->graph && f->imgfmt) recreate_graph(vf, f->w, f->h, f->d_w, f->d_h, f->imgfmt); - } } static int control(vf_instance_t *vf, int request, void *data) -- cgit v1.2.3