From 1162939b3ad5c2d1cf44a81ff1dd8a3841814de8 Mon Sep 17 00:00:00 2001 From: henry Date: Fri, 16 Dec 2005 18:32:58 +0000 Subject: do not set the flag when config failed patch by Mikulas Patocka (mikulas at artax karlin mff cuni cz) git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@17199 b3059339-0415-0410-9bf9-f77b7e298cf2 --- libmpcodecs/vf.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'libmpcodecs') diff --git a/libmpcodecs/vf.c b/libmpcodecs/vf.c index 00414474ba..5df22e8a78 100644 --- a/libmpcodecs/vf.c +++ b/libmpcodecs/vf.c @@ -569,6 +569,7 @@ int vf_config_wrapper(struct vf_instance_s* vf, int width, int height, int d_width, int d_height, unsigned int flags, unsigned int outfmt) { + int r; if ((vf->default_caps&VFCAP_CONSTANT) && vf->fmt.have_configured) { if ((vf->fmt.orig_width != width) || (vf->fmt.orig_height != height) @@ -582,7 +583,9 @@ int vf_config_wrapper(struct vf_instance_s* vf, vf->fmt.orig_height = height; vf->fmt.orig_width = width; vf->fmt.orig_fmt = outfmt; - return vf->config(vf, width, height, d_width, d_height, flags, outfmt); + r = vf->config(vf, width, height, d_width, d_height, flags, outfmt); + if (!r) vf->fmt.have_configured = 0; + return r; } int vf_next_config(struct vf_instance_s* vf, -- cgit v1.2.3