diff options
author | wm4 <wm4@nowhere> | 2016-07-06 13:27:20 +0200 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2016-07-06 13:27:20 +0200 |
commit | fc76966d9ee5e5ed19f0cf1566a7b94c9e1ac45b (patch) | |
tree | d390e4e69b10b7f0119dee61bc1bfeb31a4e79ae /video | |
parent | 0fe62bc1d2ecdc9c562d5c09e14dc7b6e844896e (diff) | |
download | mpv-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')
-rw-r--r-- | video/filter/vf.c | 2 |
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; } |