player: avoid reconfig during seeking

This probably matters only in extremely corner-case heavy testcases,
such as using mf:// with a bunch of differently sized images.
This commit is contained in:
wm4 2014-05-07 21:50:38 +02:00
parent f3362e22eb
commit 2a783d7035
1 changed files with 2 additions and 1 deletions

View File

@ -471,7 +471,8 @@ static int video_output_image(struct MPContext *mpctx, double endpts,
return 0; // EOF so that caller displays remaining VO frames
// There was no decoded image yet - must not signal fake EOF.
if (!vf->output_params.imgfmt)
// Likewise, if there's no filtered frame yet, don't reconfig yet.
if (!vf->output_params.imgfmt || !vf->output)
return r;
// Force draining.