From 8f2e9f1d613f686a834446c73465f0ca41156db3 Mon Sep 17 00:00:00 2001 From: wm4 Date: Wed, 30 Jul 2014 23:01:55 +0200 Subject: player: split seek_reset() This also reduces some code duplication with other parts of the code. The changfe is mostly cosmetic, although there are also some subtle changes in behavior. At least one change is that the big desync message is now printed after every seek. --- player/sub.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'player/sub.c') diff --git a/player/sub.c b/player/sub.c index 2ee928794c..1a9fdcafe7 100644 --- a/player/sub.c +++ b/player/sub.c @@ -76,6 +76,12 @@ void reset_subtitles(struct MPContext *mpctx, int order) osd_set_text(mpctx->osd, obj, NULL); } +void reset_subtitle_state(struct MPContext *mpctx) +{ + reset_subtitles(mpctx, 0); + reset_subtitles(mpctx, 1); +} + static void update_subtitle(struct MPContext *mpctx, int order) { struct MPOpts *opts = mpctx->opts; -- cgit v1.2.3