diff options
author | wm4 <wm4@nowhere> | 2013-12-17 13:49:11 +0100 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2013-12-17 13:49:11 +0100 |
commit | 94369170b8a9cde3bd1b848d36849476e192ecc8 (patch) | |
tree | a71545127c6dfcf147da937803257ea7f3377745 /player | |
parent | 978e099b652955a7dc78841fe994046cf122bfc0 (diff) | |
download | mpv-94369170b8a9cde3bd1b848d36849476e192ecc8.tar.bz2 mpv-94369170b8a9cde3bd1b848d36849476e192ecc8.tar.xz |
command: better check whether file duration is available
Diffstat (limited to 'player')
-rw-r--r-- | player/command.c | 2 |
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, |