[Android] LibVLC: cosmetics

Edward Wang git at videolan.org
Sun Dec 8 17:11:21 CET 2013


vlc-ports/android | branch: master | Edward Wang <edward.c.wang at compdigitec.com> | Sun Dec  8 11:08:37 2013 -0500| [091530f2178eebfaf819dcb49c285f7030e75120] | committer: Edward Wang

LibVLC: cosmetics

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

 vlc-android/jni/libvlcjni.c                     |    2 +-
 vlc-android/src/org/videolan/libvlc/LibVLC.java |   12 ++++++------
 2 files changed, 7 insertions(+), 7 deletions(-)

diff --git a/vlc-android/jni/libvlcjni.c b/vlc-android/jni/libvlcjni.c
index 4c92ccd..cba3bc0 100644
--- a/vlc-android/jni/libvlcjni.c
+++ b/vlc-android/jni/libvlcjni.c
@@ -322,7 +322,7 @@ void Java_org_videolan_libvlc_LibVLC_setEventHandler(JNIEnv *env, jobject thiz,
     eventHandlerInstance = getEventHandlerReference(env, thiz, eventHandler);
 }
 
-void Java_org_videolan_libvlc_LibVLC_playMrl(JNIEnv *env, jobject thiz, jlong instance,
+void Java_org_videolan_libvlc_LibVLC_playMRL(JNIEnv *env, jobject thiz, jlong instance,
                                              jstring mrl, jobjectArray mediaOptions)
 {
     /* Release previous media player, if any */
diff --git a/vlc-android/src/org/videolan/libvlc/LibVLC.java b/vlc-android/src/org/videolan/libvlc/LibVLC.java
index 0c67637..49aa22a 100644
--- a/vlc-android/src/org/videolan/libvlc/LibVLC.java
+++ b/vlc-android/src/org/videolan/libvlc/LibVLC.java
@@ -417,19 +417,19 @@ public class LibVLC {
             return;
         String[] options = mMediaList.getMediaOptions(position);
         mInternalMediaPlayerIndex = position;
-        playMrl(mLibVlcInstance, mrl, options);
+        playMRL(mLibVlcInstance, mrl, options);
     }
 
     /**
-     * Play an mrl
+     * Play an MRL directly.
      *
-     * @param position The index of the media
+     * @param mrl MRL of the media to play.
      */
-    public void playMrl(String mrl) {
+    public void playMRL(String mrl) {
         // index=-1 will return options from libvlc instance without relying on MediaList
         String[] options = mMediaList.getMediaOptions(-1);
         mInternalMediaPlayerIndex = 0;
-        playMrl(mLibVlcInstance, mrl, options);
+        playMRL(mLibVlcInstance, mrl, options);
     }
 
     public TrackInfo[] readTracksInfo(String mrl) {
@@ -494,7 +494,7 @@ public class LibVLC {
     /**
      * Play an mrl
      */
-    private native void playMrl(long instance, String mrl, String[] mediaOptions);
+    private native void playMRL(long instance, String mrl, String[] mediaOptions);
 
     /**
      * Returns true if any media is playing



More information about the Android mailing list