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: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/2365>
This commit is contained in:
Seungha Yang 2022-05-05 02:54:37 +09:00 committed by GStreamer Marge Bot
parent acfc9ae216
commit 1aca8ad289

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