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) {
      ~~~ ^  ~
This commit is contained in:
Sebastian Dröge 2015-04-25 14:03:12 +02:00
parent d270aec9d1
commit 7ca4b495c2

View file

@ -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 */