[Android] Use the mAudioControler getRate method
Jean-Baptiste Kempf
git at videolan.org
Mon Oct 15 14:59:10 CEST 2012
vlc-ports/android | branch: master | Jean-Baptiste Kempf <jb at videolan.org> | Mon Oct 15 14:47:51 2012 +0200| [6544a721972ab35ad08fa5b950650c5a8c11f2b9] | committer: Jean-Baptiste Kempf
Use the mAudioControler getRate method
> http://git.videolan.org/gitweb.cgi/vlc-ports/android.git/?a=commit;h=6544a721972ab35ad08fa5b950650c5a8c11f2b9
---
vlc-android/src/org/videolan/vlc/gui/audio/AudioPlayerActivity.java | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/vlc-android/src/org/videolan/vlc/gui/audio/AudioPlayerActivity.java b/vlc-android/src/org/videolan/vlc/gui/audio/AudioPlayerActivity.java
index b58de9e..7ae23bd 100644
--- a/vlc-android/src/org/videolan/vlc/gui/audio/AudioPlayerActivity.java
+++ b/vlc-android/src/org/videolan/vlc/gui/audio/AudioPlayerActivity.java
@@ -22,7 +22,6 @@ package org.videolan.vlc.gui.audio;
import org.videolan.vlc.AudioService;
import org.videolan.vlc.AudioServiceController;
-import org.videolan.vlc.LibVLC;
import org.videolan.vlc.R;
import org.videolan.vlc.RepeatType;
import org.videolan.vlc.Util;
@@ -201,7 +200,7 @@ public class AudioPlayerActivity extends Activity implements IAudioPlayer {
mPrevious.setVisibility(ImageButton.VISIBLE);
else
mPrevious.setVisibility(ImageButton.INVISIBLE);
- mSpeed.setText(String.format(java.util.Locale.US, "%.2fx", LibVLC.getExistingInstance().getRate()));
+ mSpeed.setText(String.format(java.util.Locale.US, "%.2fx", mAudioController.getRate()));
mTimeline.setOnSeekBarChangeListener(mTimelineListner);
}
More information about the Android
mailing list