mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-10 03:19:40 +00:00
Allow refreshing the ui (the timer, basically) when in PAUSED (when seeking, basically)
This commit is contained in:
parent
425a23ef98
commit
0b6448389a
1 changed files with 2 additions and 2 deletions
|
@ -102,8 +102,8 @@ static gboolean refresh_ui (CustomData *data) {
|
|||
GstFormat fmt = GST_FORMAT_TIME;
|
||||
gint64 current = -1;
|
||||
|
||||
/* We do not want to update anything unless we have a working pipeline in the PLAYING state */
|
||||
if (!data || !data->pipeline || data->state != GST_STATE_PLAYING)
|
||||
/* We do not want to update anything unless we have a working pipeline in the PAUSED or PLAYING state */
|
||||
if (!data || !data->pipeline || data->state < GST_STATE_PAUSED)
|
||||
return TRUE;
|
||||
|
||||
/* If we didn't know it yet, query the stream duration */
|
||||
|
|
Loading…
Reference in a new issue