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);