0
0
mirror of https://github.com/mpv-player/mpv.git synced 2024-09-20 12:02:23 +02:00

vf: don't clobber input params on reconfigure failure

I think this is more robust, and future commits will rely on it.
This commit is contained in:
wm4 2016-07-06 13:27:20 +02:00
parent 0fe62bc1d2
commit fc76966d9e

View File

@ -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;
}