From b41ece5ad4d902f742e939e8c9670d9d4688cb1c Mon Sep 17 00:00:00 2001 From: Ben Boeckel Date: Mon, 15 Sep 2014 20:52:58 -0400 Subject: command: avoid a double -> int cast Just check against zero directly. Changes behavior, but that should be ok. Signed-off-by: wm4 --- player/command.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'player/command.c') 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); -- cgit v1.2.3