summaryrefslogtreecommitdiffstats
path: root/player/sub.c
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2014-12-27 12:23:00 +0100
committerwm4 <wm4@nowhere>2014-12-27 12:23:00 +0100
commit6659de707b45ea96e6b8cad142c825929aa926e7 (patch)
tree3f72af80b2c893b4fc31557440ce3129c57b1087 /player/sub.c
parent069016fd6cee08f91dc0c49cd47b2b5766319ec5 (diff)
downloadmpv-6659de707b45ea96e6b8cad142c825929aa926e7.tar.bz2
mpv-6659de707b45ea96e6b8cad142c825929aa926e7.tar.xz
player: cosmetics: rename a function
Something which has this many important sideffects shouldn't start have a "get" prefix.
Diffstat (limited to 'player/sub.c')
-rw-r--r--player/sub.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/player/sub.c b/player/sub.c
index 62fcaeabe2..26c25b5f10 100644
--- a/player/sub.c
+++ b/player/sub.c
@@ -191,8 +191,8 @@ static bool is_interleaved(struct MPContext *mpctx, struct track *track)
return track->demuxer == mpctx->demuxer;
}
-void get_osd_sub_state(struct MPContext *mpctx, int order,
- struct osd_sub_state *out_state)
+void update_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];
@@ -237,7 +237,7 @@ static void update_subtitle(struct MPContext *mpctx, int order)
}
struct osd_sub_state state;
- get_osd_sub_state(mpctx, order, &state);
+ update_osd_sub_state(mpctx, order, &state);
double refpts_s = mpctx->playback_pts - state.video_offset;
double curpts_s = refpts_s - opts->sub_delay;
@@ -341,5 +341,5 @@ void reinit_subs(struct MPContext *mpctx, int order)
struct dec_sub *dec_sub = mpctx->d_sub[order];
reinit_subdec(mpctx, track, dec_sub);
- get_osd_sub_state(mpctx, order, NULL);
+ update_osd_sub_state(mpctx, order, NULL);
}