Commit 4a12b025 authored by Paulo Vitor Magacho da Silva's avatar Paulo Vitor Magacho da Silva Committed by Jean-Baptiste Kempf

Changed new time from int to long.

Signed-off-by: Jean-Baptiste Kempf's avatarJean-Baptiste Kempf <jb@videolan.org>
parent 336f061c
......@@ -139,6 +139,7 @@ static void vlc_event_callback(const libvlc_event_t *ev, void *data)
jobject bundle = (*env)->NewObject(env, clsBundle, clsCtor);
jmethodID putInt = (*env)->GetMethodID(env, clsBundle, "putInt", "(Ljava/lang/String;I)V" );
jmethodID putLong = (*env)->GetMethodID(env, clsBundle, "putLong", "(Ljava/lang/String;J)V" );
jmethodID putFloat = (*env)->GetMethodID(env, clsBundle, "putFloat", "(Ljava/lang/String;F)V" );
jmethodID putString = (*env)->GetMethodID(env, clsBundle, "putString", "(Ljava/lang/String;Ljava/lang/String;)V" );
......@@ -148,7 +149,7 @@ static void vlc_event_callback(const libvlc_event_t *ev, void *data)
(*env)->DeleteLocalRef(env, sData);
} else if (ev->type == libvlc_MediaPlayerTimeChanged) {
jstring sData = (*env)->NewStringUTF(env, "data");
(*env)->CallVoidMethod(env, bundle, putInt, sData, (int) ev->u.media_player_time_changed.new_time);
(*env)->CallVoidMethod(env, bundle, putLong, sData, ev->u.media_player_time_changed.new_time);
(*env)->DeleteLocalRef(env, sData);
} else if(ev->type == libvlc_MediaPlayerVout) {
/* For determining the vout/ES track change */
......
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