summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorXavi Artigas <xartigas@fluendo.com>2012-11-07 12:11:56 (GMT)
committerXavi Artigas <xartigas@fluendo.com>2012-11-07 12:11:56 (GMT)
commitce47bec59ee5f94059a6eef6d75c241921365c64 (patch)
treeea03e2f0a1a4d93aa3f5f43579258524d2843325
parentb05005d568b8837028528de118e9ad1666e25b6c (diff)
downloadgst-sdk-tutorials-ce47bec59ee5f94059a6eef6d75c241921365c64.tar.gz
gst-sdk-tutorials-ce47bec59ee5f94059a6eef6d75c241921365c64.tar.xz
Disable seek bar when media duration could not be queried (for still pictures, for example)
-rw-r--r--gst-sdk/tutorials/android-tutorial-5/src/com/gst_sdk_tutorials/tutorial_5/Tutorial5.java1
1 files changed, 1 insertions, 0 deletions
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;