mirror of https://github.com/mpv-player/mpv
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:
parent
f3362e22eb
commit
2a783d7035
|
@ -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.
|
||||
|
|
Loading…
Reference in New Issue