summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2013-12-17 13:49:11 +0100
committerwm4 <wm4@nowhere>2013-12-17 13:49:11 +0100
commit94369170b8a9cde3bd1b848d36849476e192ecc8 (patch)
treea71545127c6dfcf147da937803257ea7f3377745
parent978e099b652955a7dc78841fe994046cf122bfc0 (diff)
downloadmpv-94369170b8a9cde3bd1b848d36849476e192ecc8.tar.bz2
mpv-94369170b8a9cde3bd1b848d36849476e192ecc8.tar.xz
command: better check whether file duration is available
-rw-r--r--player/command.c2
1 files changed, 1 insertions, 1 deletions
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,