From 1aca8ad2896b18a10c09f7a88988da4c26112216 Mon Sep 17 00:00:00 2001 From: Seungha Yang Date: Thu, 5 May 2022 02:54:37 +0900 Subject: [PATCH] tools: gst-play: Print position even if duration is unknown Gives better visual feedback regarding position information although duration is unknown, live streams for example. Part-of: --- subprojects/gst-plugins-base/tools/gst-play.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/subprojects/gst-plugins-base/tools/gst-play.c b/subprojects/gst-plugins-base/tools/gst-play.c index 1f9e89a..3025e04 100644 --- a/subprojects/gst-plugins-base/tools/gst-play.c +++ b/subprojects/gst-plugins-base/tools/gst-play.c @@ -708,7 +708,7 @@ play_timeout (gpointer user_data) status[len] = '\0'; } - if (pos >= 0 && dur > 0) { + if (pos >= 0) { gchar dstr[32], pstr[32]; /* FIXME: pretty print in nicer format */ -- 2.7.4