1
0
mirror of https://github.com/mpv-player/mpv synced 2025-03-18 17:40:30 +00:00

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
This commit is contained in:
henry 2005-12-16 18:32:58 +00:00
parent 386e76a544
commit 1162939b3a

View File

@ -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,