summaryrefslogtreecommitdiffstats
path: root/player/playloop.c
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2016-01-17 16:56:32 +0100
committerwm4 <wm4@nowhere>2016-01-17 16:57:22 +0100
commit004bc9526308c6bc3f51591423e88bb1adaff167 (patch)
tree07fb82b2ba2920096a5a7de222b0e4a334c4985a /player/playloop.c
parent24fc176dfb0219bea6b9327b5299b6bb7d755732 (diff)
downloadmpv-004bc9526308c6bc3f51591423e88bb1adaff167.tar.bz2
mpv-004bc9526308c6bc3f51591423e88bb1adaff167.tar.xz
player: refactor: eliminate MPContext.d_sub
The same is going to happen to d_video and d_audio later.
Diffstat (limited to 'player/playloop.c')
-rw-r--r--player/playloop.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/player/playloop.c b/player/playloop.c
index 5226103733..174318e70e 100644
--- a/player/playloop.c
+++ b/player/playloop.c
@@ -239,8 +239,7 @@ static int mp_seek(MPContext *mpctx, struct seek_params seek,
if (timeline_switch_to_time(mpctx, seek.amount)) {
reinit_video_chain(mpctx);
reinit_audio_chain(mpctx);
- reinit_subs(mpctx, 0);
- reinit_subs(mpctx, 1);
+ reinit_sub_all(mpctx);
}
int demuxer_style = 0;