[Android] Media: use the primary playlist, for now
Edward Wang
git at videolan.org
Wed Aug 28 16:34:20 CEST 2013
vlc-ports/android | branch: master | Edward Wang <edward.c.wang at compdigitec.com> | Tue Aug 27 22:11:02 2013 +0200| [2f47a204611650600e74c06ff674f3615ff77966] | committer: Edward Wang
Media: use the primary playlist, for now
These will eventually be refactored/replaced as the refactoring continues
> http://git.videolan.org/gitweb.cgi/vlc-ports/android.git/?a=commit;h=2f47a204611650600e74c06ff674f3615ff77966
---
vlc-android/src/org/videolan/vlc/Media.java | 2 +-
vlc-android/src/org/videolan/vlc/gui/HistoryFragment.java | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/vlc-android/src/org/videolan/vlc/Media.java b/vlc-android/src/org/videolan/vlc/Media.java
index 60aaf3d..1cc3136 100644
--- a/vlc-android/src/org/videolan/vlc/Media.java
+++ b/vlc-android/src/org/videolan/vlc/Media.java
@@ -163,7 +163,7 @@ public class Media implements Comparable<Media> {
mLibVlc = Util.getLibVlcInstance();
mType = TYPE_ALL;
- TrackInfo[] tracks = mLibVlc.readTracksInfoPosition(position);
+ TrackInfo[] tracks = mLibVlc.readTracksInfoPosition(mLibVlc.getPrimaryMediaList(), position);
extractTrackInfo(tracks);
} catch (LibVlcException e) {
diff --git a/vlc-android/src/org/videolan/vlc/gui/HistoryFragment.java b/vlc-android/src/org/videolan/vlc/gui/HistoryFragment.java
index fec29a4..549163b 100644
--- a/vlc-android/src/org/videolan/vlc/gui/HistoryFragment.java
+++ b/vlc-android/src/org/videolan/vlc/gui/HistoryFragment.java
@@ -98,7 +98,7 @@ public class HistoryFragment extends SherlockListFragment {
playListIndex(info.position);
return true;
} else if(id == R.id.history_view_delete) {
- LibVLC.getExistingInstance().removeIndex(info.position);
+ LibVLC.getExistingInstance().getPrimaryMediaList().remove(info.position);
mHistoryAdapter.notifyDataSetChanged();
return true;
}
More information about the Android
mailing list