diff options
author | wm4 <wm4@nowhere> | 2014-10-31 23:59:10 +0100 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2014-11-01 00:02:01 +0100 |
commit | 3f3a6b13bd05f6b0c0a68d8857699368a1949cd6 (patch) | |
tree | 72f301a4e1cc60c6ad59cc6b5762f70cd15142b5 /player/sub.c | |
parent | 75afef64638485aa982519cee21a7b55e2b90a28 (diff) | |
download | mpv-3f3a6b13bd05f6b0c0a68d8857699368a1949cd6.tar.bz2 mpv-3f3a6b13bd05f6b0c0a68d8857699368a1949cd6.tar.xz |
sub: remove osd_get_sub()
Trades one strange thing against another, but seems slightly less
strange.
Diffstat (limited to 'player/sub.c')
-rw-r--r-- | player/sub.c | 8 |
1 files changed, 4 insertions, 4 deletions
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); } |