From 3f3a6b13bd05f6b0c0a68d8857699368a1949cd6 Mon Sep 17 00:00:00 2001 From: wm4 Date: Fri, 31 Oct 2014 23:59:10 +0100 Subject: sub: remove osd_get_sub() Trades one strange thing against another, but seems slightly less strange. --- player/sub.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'player/sub.c') diff --git a/player/sub.c b/player/sub.c index 09da80f1ae..f694296c90 100644 --- a/player/sub.c +++ b/player/sub.c @@ -193,8 +193,8 @@ void reset_subtitle_state(struct MPContext *mpctx) reset_subtitles(mpctx, 1); } -static void update_sub_state(struct MPContext *mpctx, int order, - struct osd_sub_state *out_state) +void get_osd_sub_state(struct MPContext *mpctx, int order, + struct osd_sub_state *out_state) { struct MPOpts *opts = mpctx->opts; struct track *track = mpctx->current_track[order][STREAM_SUB]; @@ -242,7 +242,7 @@ static void update_subtitle(struct MPContext *mpctx, int order) } struct osd_sub_state state; - update_sub_state(mpctx, order, &state); + get_osd_sub_state(mpctx, order, &state); double refpts_s = mpctx->playback_pts - state.video_offset; double curpts_s = refpts_s - opts->sub_delay; @@ -339,5 +339,5 @@ void reinit_subs(struct MPContext *mpctx, int order) struct dec_sub *dec_sub = mpctx->d_sub[order]; reinit_subdec(mpctx, track, dec_sub); - update_sub_state(mpctx, order, NULL); + get_osd_sub_state(mpctx, order, NULL); } -- cgit v1.2.3