[Android] Add Mediawrapper.setLength() method

Geoffrey Métais git at videolan.org
Tue Oct 3 18:39:20 CEST 2017


vlc-android | branch: master | Geoffrey Métais <geoffrey.metais at gmail.com> | Tue Oct  3 18:31:03 2017 +0200| [fd9c95d97596589a117736089a91fd0693d8d9f3] | committer: Geoffrey Métais

Add Mediawrapper.setLength() method

> https://code.videolan.org/videolan/vlc-android/commit/fd9c95d97596589a117736089a91fd0693d8d9f3
---

 medialibrary/src/org/videolan/medialibrary/media/MediaWrapper.java | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/medialibrary/src/org/videolan/medialibrary/media/MediaWrapper.java b/medialibrary/src/org/videolan/medialibrary/media/MediaWrapper.java
index 3d8aecb52..de8e18c22 100644
--- a/medialibrary/src/org/videolan/medialibrary/media/MediaWrapper.java
+++ b/medialibrary/src/org/videolan/medialibrary/media/MediaWrapper.java
@@ -397,6 +397,10 @@ public class MediaWrapper extends MediaLibraryItem implements Parcelable {
         return mLength;
     }
 
+    public void setLength(long length) {
+        mLength = length;
+    }
+
     public int getType() {
         return mType;
     }



More information about the Android mailing list