[Android] MediaWrapper: remove flags

Thomas Guillem git at videolan.org
Wed Jul 1 15:21:12 CEST 2015


vlc-ports/android | branch: master | Thomas Guillem <thomas at gllm.fr> | Wed Jul  1 15:21:03 2015 +0200| [cb99b682dd04ea5a37f5faf8e954630ade83ca48] | committer: Thomas Guillem

MediaWrapper: remove flags

> http://git.videolan.org/gitweb.cgi/vlc-ports/android.git/?a=commit;h=cb99b682dd04ea5a37f5faf8e954630ade83ca48
---

 vlc-android/src/org/videolan/vlc/MediaWrapper.java    |   10 ----------
 vlc-android/src/org/videolan/vlc/PlaybackService.java |    2 +-
 2 files changed, 1 insertion(+), 11 deletions(-)

diff --git a/vlc-android/src/org/videolan/vlc/MediaWrapper.java b/vlc-android/src/org/videolan/vlc/MediaWrapper.java
index 4f56172..f5366e1 100644
--- a/vlc-android/src/org/videolan/vlc/MediaWrapper.java
+++ b/vlc-android/src/org/videolan/vlc/MediaWrapper.java
@@ -420,16 +420,6 @@ public class MediaWrapper implements Parcelable {
         this.mLastModified = mLastModified;
     }
 
-    public void addFlags(int flags) {
-        mFlags |= flags;
-    }
-    public void setFlags(int flags) {
-        mFlags = flags;
-    }
-    public int getFlags() {
-        return mFlags;
-    }
-
     @Override
     public int describeContents() {
         return 0;
diff --git a/vlc-android/src/org/videolan/vlc/PlaybackService.java b/vlc-android/src/org/videolan/vlc/PlaybackService.java
index 9df88a1..cfbe0ac 100644
--- a/vlc-android/src/org/videolan/vlc/PlaybackService.java
+++ b/vlc-android/src/org/videolan/vlc/PlaybackService.java
@@ -1505,7 +1505,7 @@ public class PlaybackService extends Service {
         if (!mVideoEnabled)
             flags |= VLCOptions.MEDIA_NO_VIDEO;
         final Media media = new Media(VLCInstance.get(), mw.getUri());
-        VLCOptions.setMediaOptions(media, this, flags | mw.getFlags());
+        VLCOptions.setMediaOptions(media, this, flags);
         media.setEventListener(mMediaListener);
         mMediaPlayer.setMedia(media);
         media.release();



More information about the Android mailing list