[Android] PlaybackService: use getCurrentMedia helper
Jean-Baptiste Kempf
git at videolan.org
Thu Jun 11 19:38:29 CEST 2015
vlc-ports/android | branch: master | Jean-Baptiste Kempf <jb at videolan.org> | Thu Jun 11 19:38:08 2015 +0200| [b939aff8e1dfdac80ef0dec3d73afa195612ea12] | committer: Jean-Baptiste Kempf
PlaybackService: use getCurrentMedia helper
> http://git.videolan.org/gitweb.cgi/vlc-ports/android.git/?a=commit;h=b939aff8e1dfdac80ef0dec3d73afa195612ea12
---
vlc-android/src/org/videolan/vlc/PlaybackService.java | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/vlc-android/src/org/videolan/vlc/PlaybackService.java b/vlc-android/src/org/videolan/vlc/PlaybackService.java
index 84df86f..6f9285e 100644
--- a/vlc-android/src/org/videolan/vlc/PlaybackService.java
+++ b/vlc-android/src/org/videolan/vlc/PlaybackService.java
@@ -622,7 +622,7 @@ public class PlaybackService extends Service {
private void handleVout() {
if (mForceAudio || MediaPlayer().getVideoTracksCount() <= 0 || !hasCurrentMedia())
return;
- final MediaWrapper mw = mMediaListPlayer.getMediaList().getMedia(mCurrentIndex);
+ final MediaWrapper mw = getCurrentMedia();
if (mw == null)
return;
@@ -664,7 +664,7 @@ public class PlaybackService extends Service {
}
private void executeOnMediaPlayedAdded() {
- final MediaWrapper media = mMediaListPlayer.getMediaList().getMedia(mCurrentIndex);
+ final MediaWrapper media = getCurrentMedia();
for (IPlaybackServiceCallback callback : mCallback.keySet()) {
try {
callback.onMediaPlayedAdded(media, 0);
More information about the Android
mailing list