summaryrefslogtreecommitdiffstats
path: root/video/filter
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2016-07-06 13:27:20 +0200
committerwm4 <wm4@nowhere>2016-07-06 13:27:20 +0200
commitfc76966d9ee5e5ed19f0cf1566a7b94c9e1ac45b (patch)
treed390e4e69b10b7f0119dee61bc1bfeb31a4e79ae /video/filter
parent0fe62bc1d2ecdc9c562d5c09e14dc7b6e844896e (diff)
downloadmpv-fc76966d9ee5e5ed19f0cf1566a7b94c9e1ac45b.tar.bz2
mpv-fc76966d9ee5e5ed19f0cf1566a7b94c9e1ac45b.tar.xz
vf: don't clobber input params on reconfigure failure
I think this is more robust, and future commits will rely on it.
Diffstat (limited to 'video/filter')
-rw-r--r--video/filter/vf.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/video/filter/vf.c b/video/filter/vf.c
index 176ac95b70..b971dc0d8b 100644
--- a/video/filter/vf.c
+++ b/video/filter/vf.c
@@ -652,7 +652,7 @@ int vf_reconfig(struct vf_chain *c, const struct mp_image_params *params)
mp_msg(c->log, loglevel, "Video filter chain:\n");
vf_print_filter_chain(c, loglevel, failing);
if (r < 0)
- c->input_params = c->output_params = (struct mp_image_params){0};
+ c->output_params = (struct mp_image_params){0};
return r;
}