From ae9c03c1a954ddad7114de0deff42ac046baf0f2 Mon Sep 17 00:00:00 2001 From: wm4 Date: Sat, 8 Dec 2012 23:30:59 +0100 Subject: mplayer: make --length work if --start is missing In this case, --start should default to 0 obviously. --- core/mplayer.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'core') diff --git a/core/mplayer.c b/core/mplayer.c index 5ef73de0f7..0a6b4f5130 100644 --- a/core/mplayer.c +++ b/core/mplayer.c @@ -284,7 +284,7 @@ static double get_play_end_pts(struct MPContext *mpctx) if (opts->play_end.type) { return rel_time_to_abs(mpctx, opts->play_end, MP_NOPTS_VALUE); } else if (opts->play_length.type) { - double start = rel_time_to_abs(mpctx, opts->play_start, -1); + double start = rel_time_to_abs(mpctx, opts->play_start, 0); double length = rel_time_to_abs(mpctx, opts->play_length, -1); if (start != -1 && length != -1) return start + length; -- cgit v1.2.3