diff options
author | wm4 <wm4@nowhere> | 2012-12-08 23:30:59 +0100 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2012-12-11 00:37:54 +0100 |
commit | ae9c03c1a954ddad7114de0deff42ac046baf0f2 (patch) | |
tree | d79e65275e189eb34159dba1d018383ab2e2b7a7 /core | |
parent | 180944fe282fb57be4d8f986f7fcb0a209f943d5 (diff) | |
download | mpv-ae9c03c1a954ddad7114de0deff42ac046baf0f2.tar.bz2 mpv-ae9c03c1a954ddad7114de0deff42ac046baf0f2.tar.xz |
mplayer: make --length work if --start is missing
In this case, --start should default to 0 obviously.
Diffstat (limited to 'core')
-rw-r--r-- | core/mplayer.c | 2 |
1 files changed, 1 insertions, 1 deletions
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; |