From ce47bec59ee5f94059a6eef6d75c241921365c64 Mon Sep 17 00:00:00 2001 From: Xavi Artigas Date: Wed, 7 Nov 2012 13:11:56 +0100 Subject: [PATCH] Disable seek bar when media duration could not be queried (for still pictures, for example) --- .../src/com/gst_sdk_tutorials/tutorial_5/Tutorial5.java | 1 + 1 file changed, 1 insertion(+) diff --git a/gst-sdk/tutorials/android-tutorial-5/src/com/gst_sdk_tutorials/tutorial_5/Tutorial5.java b/gst-sdk/tutorials/android-tutorial-5/src/com/gst_sdk_tutorials/tutorial_5/Tutorial5.java index bbdbb0a..39d6dcf 100644 --- a/gst-sdk/tutorials/android-tutorial-5/src/com/gst_sdk_tutorials/tutorial_5/Tutorial5.java +++ b/gst-sdk/tutorials/android-tutorial-5/src/com/gst_sdk_tutorials/tutorial_5/Tutorial5.java @@ -229,6 +229,7 @@ public class Tutorial5 extends Activity implements SurfaceHolder.Callback, OnSee sb.setMax(duration); sb.setProgress(position); updateTimeWidget(); + sb.setEnabled(duration != 0); } }); this.position = position; -- 2.7.4