summaryrefslogtreecommitdiffstats
path: root/video/filter/vf_lavfi.c
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2013-12-07 19:33:11 +0100
committerwm4 <wm4@nowhere>2013-12-07 19:33:11 +0100
commit0af9ede5466fa5b02348d5cfb3182f80771a5f38 (patch)
treee314f304cac6bc675a289d5b4f6982fc713071a6 /video/filter/vf_lavfi.c
parentbb6165342db0ba60fefa97afe770b393fd6cb463 (diff)
downloadmpv-0af9ede5466fa5b02348d5cfb3182f80771a5f38.tar.bz2
mpv-0af9ede5466fa5b02348d5cfb3182f80771a5f38.tar.xz
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.
Diffstat (limited to 'video/filter/vf_lavfi.c')
-rw-r--r--video/filter/vf_lavfi.c5
1 files changed, 2 insertions, 3 deletions
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)