summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2019-05-26 01:24:29 +0200
committerwm4 <wm4@nowhere>2019-09-19 20:37:05 +0200
commit23a73938fa67e3c342e1124ad6fd4a8025f062b6 (patch)
tree68e5e951cd88d462b6f4e9f816134d1ec4b3e26d
parent900a9624f9156dd1160b2488536156f9e9e654bd (diff)
downloadmpv-23a73938fa67e3c342e1124ad6fd4a8025f062b6.tar.bz2
mpv-23a73938fa67e3c342e1124ad6fd4a8025f062b6.tar.xz
player: minor --end simplification
-rw-r--r--player/misc.c5
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)