Commit 2ea98b8d authored by Thomas Guillem's avatar Thomas Guillem
Browse files

libvlc: native expendMedia doesn't need position

parent ad4b1809
...@@ -75,7 +75,7 @@ static int expand_media_internal(JNIEnv *env, libvlc_instance_t* p_instance, job ...@@ -75,7 +75,7 @@ static int expand_media_internal(JNIEnv *env, libvlc_instance_t* p_instance, job
} }
} }
jint Java_org_videolan_libvlc_LibVLC_expandMedia(JNIEnv *env, jobject thiz, jint position, jobject children) { jint Java_org_videolan_libvlc_LibVLC_expandMedia(JNIEnv *env, jobject thiz, jobject children) {
return (jint)expand_media_internal(env, return (jint)expand_media_internal(env,
getLibVlcInstance(env, thiz), getLibVlcInstance(env, thiz),
children, children,
......
...@@ -849,5 +849,5 @@ public class LibVLC { ...@@ -849,5 +849,5 @@ public class LibVLC {
/* MediaList */ /* MediaList */
protected native void loadPlaylist(String mrl, ArrayList<String> items); protected native void loadPlaylist(String mrl, ArrayList<String> items);
protected native int expandMedia(int position, ArrayList<String> children); protected native int expandMedia(ArrayList<String> children);
} }
...@@ -71,7 +71,7 @@ public class MediaList { ...@@ -71,7 +71,7 @@ public class MediaList {
*/ */
public int expandMedia(int position) { public int expandMedia(int position) {
ArrayList<String> children = new ArrayList<String>(); ArrayList<String> children = new ArrayList<String>();
int ret = mLibVLC.expandMedia(position, children); int ret = mLibVLC.expandMedia(children);
if(ret == 0) { if(ret == 0) {
mEventHandler.callback(EventHandler.CustomMediaListExpanding, new Bundle()); mEventHandler.callback(EventHandler.CustomMediaListExpanding, new Bundle());
this.remove(position); this.remove(position);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment