Commit 2a3573e2 authored by Thomas Guillem's avatar Thomas Guillem

events: add type of track changed for libvlc_MediaPlayerES* events

parent 98bee5ff
......@@ -190,6 +190,11 @@ static void vlc_event_callback(const libvlc_event_t *ev, void *data)
(*env)->DeleteLocalRef(env, item_uri_value);
(*env)->DeleteLocalRef(env, item_index);
free(mrl);
} else if(ev->type == libvlc_MediaPlayerESAdded ||
ev->type == libvlc_MediaPlayerESDeleted ) {
jstring sData = (*env)->NewStringUTF(env, "data");
(*env)->CallVoidMethod(env, bundle, putInt, sData, ev->u.media_player_es_changed.i_type);
(*env)->DeleteLocalRef(env, sData);
}
/* Get the object class */
......
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