[Android] media.MediaPlayer: cosmetic

Jean-Baptiste Kempf git at videolan.org
Fri Jun 12 16:58:51 CEST 2015


vlc-ports/android | branch: master | Jean-Baptiste Kempf <jb at videolan.org> | Fri Jun 12 16:22:28 2015 +0200| [4541484322e41af296ecd7abeb829256b5f61646] | committer: Jean-Baptiste Kempf

media.MediaPlayer: cosmetic

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

 libvlc/src/org/videolan/libvlc/media/MediaPlayer.java |    6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/libvlc/src/org/videolan/libvlc/media/MediaPlayer.java b/libvlc/src/org/videolan/libvlc/media/MediaPlayer.java
index b613119..d3d738a 100644
--- a/libvlc/src/org/videolan/libvlc/media/MediaPlayer.java
+++ b/libvlc/src/org/videolan/libvlc/media/MediaPlayer.java
@@ -101,14 +101,14 @@ public class MediaPlayer
 
     public void setDataSource(Context context, Uri uri)
             throws IOException, IllegalArgumentException, SecurityException, IllegalStateException {
-        mCurrentMedia = new Media(mLibVLC, uri);
-        mMediaPlayer.setMedia(mCurrentMedia);
+        setDataSource(context, uri, null);
     }
 
     // FIXME, this is INCORRECT, @headers are ignored
     public void setDataSource(Context context, Uri uri, Map<String, String> headers)
             throws IOException, IllegalArgumentException, SecurityException, IllegalStateException {
-        setDataSource(context, uri, null);
+        mCurrentMedia = new Media(mLibVLC, uri);
+        mMediaPlayer.setMedia(mCurrentMedia);
     }
 
     public void setDataSource(String path)



More information about the Android mailing list