mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-11 11:51:34 +00:00
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:
parent
d270aec9d1
commit
7ca4b495c2
1 changed files with 1 additions and 1 deletions
|
@ -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 */
|
||||
|
|
Loading…
Reference in a new issue