mirror of
https://github.com/mpv-player/mpv
synced 2024-12-24 15:52:25 +00:00
video: fix midstream video configuration changes
Commit 771a8bf5
added code to avoid unnecessary vf_reconfig() calls for
unrelated reasons, but forget to consider that it has to be called at
least once if the input format changes. As a consequence it got "stuck"
due to not being able to decode more frames.
This commit is contained in:
parent
f2110f582d
commit
16b48a429d
@ -624,6 +624,7 @@ static int video_filter(struct MPContext *mpctx, bool eof)
|
|||||||
return VD_PROGRESS;
|
return VD_PROGRESS;
|
||||||
|
|
||||||
// The filter chain is drained; execute the filter format change.
|
// The filter chain is drained; execute the filter format change.
|
||||||
|
vf->initialized = 0;
|
||||||
filter_reconfig(mpctx, mpctx->vo_chain);
|
filter_reconfig(mpctx, mpctx->vo_chain);
|
||||||
|
|
||||||
mp_notify(mpctx, MPV_EVENT_VIDEO_RECONFIG, NULL);
|
mp_notify(mpctx, MPV_EVENT_VIDEO_RECONFIG, NULL);
|
||||||
|
Loading…
Reference in New Issue
Block a user