From 0b6448389a50c87b78841f1fbe5ff1f91bd9ba10 Mon Sep 17 00:00:00 2001 From: Xavi Artigas Date: Mon, 17 Sep 2012 12:59:33 +0200 Subject: [PATCH] Allow refreshing the ui (the timer, basically) when in PAUSED (when seeking, basically) --- gst-sdk/tutorials/android-tutorial-1/jni/tutorial-1.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gst-sdk/tutorials/android-tutorial-1/jni/tutorial-1.c b/gst-sdk/tutorials/android-tutorial-1/jni/tutorial-1.c index 92becffffb..70c1662ab4 100755 --- a/gst-sdk/tutorials/android-tutorial-1/jni/tutorial-1.c +++ b/gst-sdk/tutorials/android-tutorial-1/jni/tutorial-1.c @@ -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 */