diff options
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); } |