tools: gst-play: Print position even if duration is unknown
authorSeungha Yang <seungha@centricular.com>
Wed, 4 May 2022 17:54:37 +0000 (02:54 +0900)
committerGStreamer Marge Bot <gitlab-merge-bot@gstreamer-foundation.org>
Fri, 13 May 2022 21:39:35 +0000 (21:39 +0000)
Gives better visual feedback regarding position information
although duration is unknown, live streams for example.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/2365>

subprojects/gst-plugins-base/tools/gst-play.c

index 1f9e89a..3025e04 100644 (file)
@@ -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 */