Commit 0af15815 authored by Ghislain MARY's avatar Ghislain MARY
Browse files

Fix build for Android.

parent 42896dce
......@@ -3543,9 +3543,9 @@ struct LinphonePlayerData {
jmethodID mEndOfFileMethodID;
static void _eof_callback(LinphonePlayer *player, void *user_data) {
static void _eof_callback(LinphonePlayer *player) {
JNIEnv *env;
LinphonePlayerData *player_data = (LinphonePlayerData *)user_data;
LinphonePlayerData *player_data = (LinphonePlayerData *)linphone_player_get_user_data(player);
jvm->AttachCurrentThread(&env, NULL);
env->CallVoidMethod(player_data->mListener, player_data->mEndOfFileMethodID, player_data->mJLinphonePlayer);
......@@ -3554,6 +3554,7 @@ extern "C" void Java_org_linphone_core_LinphonePlayerImpl_init(JNIEnv *env, jobj
LinphonePlayer *player = (LinphonePlayer *)ptr;
LinphonePlayerData *data = (LinphonePlayerData *)linphone_player_get_user_data(player);
linphone_player_cbs_set_eof_reached(linphone_player_get_callbacks(player), _eof_callback);
extern "C" jint Java_org_linphone_core_LinphonePlayerImpl_open(JNIEnv *env, jobject jPlayer, jlong ptr, jstring filename) {
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