summaryrefslogtreecommitdiffstats
path: root/player/video.c
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2016-02-09 22:19:01 +0100
committerwm4 <wm4@nowhere>2016-02-09 22:19:01 +0100
commitb7f6dfc19ad1a051a8365c055c2a9629cb2341b4 (patch)
tree844e9126376e657278a70a3762cc46540e4adf95 /player/video.c
parent668ba7441aed3157474e03cbb1ff24430919fa85 (diff)
downloadmpv-b7f6dfc19ad1a051a8365c055c2a9629cb2341b4.tar.bz2
mpv-b7f6dfc19ad1a051a8365c055c2a9629cb2341b4.tar.xz
player: force refresh seek when changing audio filters
Unfortunately I see no better solution. The refresh seek is skipped if the amount of buffered audio is not overly huge. Unfortunately softvol af_volume insertion still can cause this issue, because it's outside of the normal dynamic filter chain changing code. Move the video refresh call to reinit_video_filters() to make it more uniform along with the audio code.
Diffstat (limited to 'player/video.c')
-rw-r--r--player/video.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/player/video.c b/player/video.c
index 4179690416..9768a53b85 100644
--- a/player/video.c
+++ b/player/video.c
@@ -226,6 +226,8 @@ int reinit_video_filters(struct MPContext *mpctx)
if (need_reconfig)
filter_reconfig(vo_c);
+ mp_force_video_refresh(mpctx);
+
mp_notify(mpctx, MPV_EVENT_VIDEO_RECONFIG, NULL);
return vo_c->vf->initialized;