summaryrefslogtreecommitdiffstats
path: root/player/command.c
diff options
context:
space:
mode:
Diffstat (limited to 'player/command.c')
-rw-r--r--player/command.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/player/command.c b/player/command.c
index 4879115d86..6c881bcfca 100644
--- a/player/command.c
+++ b/player/command.c
@@ -352,7 +352,7 @@ static int mp_property_length(void *ctx, struct m_property *prop,
MPContext *mpctx = ctx;
double len;
- if (!(int) (len = get_time_length(mpctx)))
+ if ((len = get_time_length(mpctx)) <= 0)
return M_PROPERTY_UNAVAILABLE;
return property_time(action, arg, len);