diff options
author | wm4 <wm4@nowhere> | 2016-07-08 08:22:51 +0200 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2016-07-08 08:22:51 +0200 |
commit | 16b48a429d23473ce5ce6a9bfe9dd0b7f0c91f30 (patch) | |
tree | 8000de9dec5a8611c4a41df9e1fd02006d306305 /player/video.c | |
parent | f2110f582d0432d59f743565e75c0a16ef1f8668 (diff) | |
download | mpv-16b48a429d23473ce5ce6a9bfe9dd0b7f0c91f30.tar.bz2 mpv-16b48a429d23473ce5ce6a9bfe9dd0b7f0c91f30.tar.xz |
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.
Diffstat (limited to 'player/video.c')
-rw-r--r-- | player/video.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/player/video.c b/player/video.c index 9819fe4705..59ce72f23e 100644 --- a/player/video.c +++ b/player/video.c @@ -624,6 +624,7 @@ static int video_filter(struct MPContext *mpctx, bool eof) return VD_PROGRESS; // The filter chain is drained; execute the filter format change. + vf->initialized = 0; filter_reconfig(mpctx, mpctx->vo_chain); mp_notify(mpctx, MPV_EVENT_VIDEO_RECONFIG, NULL); |