[Android] MediaList: remove useless checks

Thomas Guillem git at videolan.org
Fri Jul 10 19:20:35 CEST 2015


vlc-ports/android | branch: master | Thomas Guillem <thomas at gllm.fr> | Fri Jul 10 17:27:34 2015 +0200| [8bf82f43f9f6f9d588b3149b2e0be82440f4a1fd] | committer: Thomas Guillem

MediaList: remove useless checks

These checks are done in the native part.

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

 libvlc/src/org/videolan/libvlc/MediaList.java |    4 ----
 1 file changed, 4 deletions(-)

diff --git a/libvlc/src/org/videolan/libvlc/MediaList.java b/libvlc/src/org/videolan/libvlc/MediaList.java
index 1404cf3..4beff1a 100644
--- a/libvlc/src/org/videolan/libvlc/MediaList.java
+++ b/libvlc/src/org/videolan/libvlc/MediaList.java
@@ -78,8 +78,6 @@ public class MediaList extends VLCObject<MediaList.Event> {
      * @param md Should not be released
      */
     protected MediaList(MediaDiscoverer md) {
-        if (md.isReleased())
-            throw new IllegalArgumentException("MediaDiscoverer is not native");
         nativeNewFromMediaDiscoverer(md);
         init();
     }
@@ -89,8 +87,6 @@ public class MediaList extends VLCObject<MediaList.Event> {
      * @param m Should not be released
      */
     protected MediaList(Media m) {
-        if (m.isReleased())
-            throw new IllegalArgumentException("Media is not native");
         nativeNewFromMedia(m);
         init();
     }



More information about the Android mailing list