From 23a73938fa67e3c342e1124ad6fd4a8025f062b6 Mon Sep 17 00:00:00 2001 From: wm4 Date: Sun, 26 May 2019 01:24:29 +0200 Subject: player: minor --end simplification --- player/misc.c | 5 +---- 1 file changed, 1 insertion(+), 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) -- cgit v1.2.3