[Android] Restore speed rate on seekbar in adv options
Geoffrey Métais
git at videolan.org
Mon Mar 16 15:58:29 CET 2015
vlc-ports/android | branch: master | Geoffrey Métais <geoffrey.metais at gmail.com> | Mon Mar 16 11:57:15 2015 +0100| [bb757b4c3137d1ed73699d0751df97856cd0a57f] | committer: Geoffrey Métais
Restore speed rate on seekbar in adv options
> http://git.videolan.org/gitweb.cgi/vlc-ports/android.git/?a=commit;h=bb757b4c3137d1ed73699d0751df97856cd0a57f
---
vlc-android/src/org/videolan/vlc/gui/video/AdvOptionsDialog.java | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/vlc-android/src/org/videolan/vlc/gui/video/AdvOptionsDialog.java b/vlc-android/src/org/videolan/vlc/gui/video/AdvOptionsDialog.java
index a8a4353..994ac31 100644
--- a/vlc-android/src/org/videolan/vlc/gui/video/AdvOptionsDialog.java
+++ b/vlc-android/src/org/videolan/vlc/gui/video/AdvOptionsDialog.java
@@ -150,6 +150,11 @@ public class AdvOptionsDialog extends DialogFragment implements View.OnClickList
mHandler.sendEmptyMessage(TOGGLE_CANCEL);
mTextColor = mSleepTitle.getCurrentTextColor();
+ double speed = LibVLC.getExistingInstance().getRate();
+ if (speed != 1.0d) {
+ speed = 100*(1+Math.log(speed)/Math.log(4));
+ mSeek.setProgress((int) speed);
+ }
return root;
}
More information about the Android
mailing list