From 94369170b8a9cde3bd1b848d36849476e192ecc8 Mon Sep 17 00:00:00 2001 From: wm4 Date: Tue, 17 Dec 2013 13:49:11 +0100 Subject: command: better check whether file duration is available --- player/command.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/player/command.c b/player/command.c index 3199bd4137..759e349e90 100644 --- a/player/command.c +++ b/player/command.c @@ -390,7 +390,7 @@ static bool time_remaining(MPContext *mpctx, double *remaining) *remaining = len - (pos - start); - return !!(int)len; + return len > 0; } static int mp_property_remaining(m_option_t *prop, int action, -- cgit v1.2.3