diff options
author | wm4 <wm4@nowhere> | 2019-05-26 01:24:29 +0200 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2019-09-19 20:37:05 +0200 |
commit | 23a73938fa67e3c342e1124ad6fd4a8025f062b6 (patch) | |
tree | 68e5e951cd88d462b6f4e9f816134d1ec4b3e26d | |
parent | 900a9624f9156dd1160b2488536156f9e9e654bd (diff) | |
download | mpv-23a73938fa67e3c342e1124ad6fd4a8025f062b6.tar.bz2 mpv-23a73938fa67e3c342e1124ad6fd4a8025f062b6.tar.xz |
player: minor --end simplification
-rw-r--r-- | player/misc.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/player/misc.c b/player/misc.c index 43d5a750e5..27179154a3 100644 --- a/player/misc.c +++ b/player/misc.c @@ -88,10 +88,7 @@ static double rel_time_to_abs(struct MPContext *mpctx, struct m_rel_time t) double get_play_end_pts(struct MPContext *mpctx) { struct MPOpts *opts = mpctx->opts; - double end = MP_NOPTS_VALUE; - if (opts->play_end.type) { - end = rel_time_to_abs(mpctx, opts->play_end); - } + double end = rel_time_to_abs(mpctx, opts->play_end); if (opts->play_length.type) { double start = get_play_start_pts(mpctx); if (start == MP_NOPTS_VALUE) |