mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-10 19:31:12 +00:00
Disable seek bar when media duration could not be queried (for still pictures, for example)
This commit is contained in:
parent
b05005d568
commit
ce47bec59e
1 changed files with 1 additions and 0 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue