From 7ca4b495c239228f8ce0c4fa1588000945c0e407 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20Dr=C3=B6ge?= Date: Sat, 25 Apr 2015 14:03:12 +0200 Subject: [PATCH] playback/player: gst-play: Fix compiler warning gst-play.c:89:11: error: comparison of unsigned expression >= 0 is always true [-Werror,-Wtautological-compare] if (pos >= 0 && dur > 0) { ~~~ ^ ~ --- playback/player/gst-play/gst-play.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/playback/player/gst-play/gst-play.c b/playback/player/gst-play/gst-play.c index 6fc73bbce3..9db6d5552a 100644 --- a/playback/player/gst-play/gst-play.c +++ b/playback/player/gst-play/gst-play.c @@ -86,7 +86,7 @@ position_updated_cb (GstPlayer * player, GstClockTime pos, GstPlay * play) memset (status, ' ', sizeof (status) - 1); - if (pos >= 0 && dur > 0) { + if (pos != -1 && dur > 0 && dur != -1) { gchar dstr[32], pstr[32]; /* FIXME: pretty print in nicer format */