Allow refreshing the ui (the timer, basically) when in PAUSED (when seeking, basically)

This commit is contained in:
Xavi Artigas 2012-09-17 12:59:33 +02:00
parent 425a23ef98
commit 0b6448389a

View file

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