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:
parent
acfc9ae216
commit
1aca8ad289
@ -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 */
|
||||
|
Loading…
x
Reference in New Issue
Block a user