Commit 5c8988fb authored by Jean-Baptiste Kempf's avatar Jean-Baptiste Kempf

Reindent and remove trailing spaces

parent c40d37aa
...@@ -143,9 +143,9 @@ static void vlc_event_callback(const libvlc_event_t *ev, void *data) ...@@ -143,9 +143,9 @@ static void vlc_event_callback(const libvlc_event_t *ev, void *data)
jmethodID putString = (*env)->GetMethodID(env, clsBundle, "putString", "(Ljava/lang/String;Ljava/lang/String;)V" ); jmethodID putString = (*env)->GetMethodID(env, clsBundle, "putString", "(Ljava/lang/String;Ljava/lang/String;)V" );
if (ev->type == libvlc_MediaPlayerPositionChanged) { if (ev->type == libvlc_MediaPlayerPositionChanged) {
jstring sData = (*env)->NewStringUTF(env, "data"); jstring sData = (*env)->NewStringUTF(env, "data");
(*env)->CallVoidMethod(env, bundle, putFloat, sData, ev->u.media_player_position_changed.new_position); (*env)->CallVoidMethod(env, bundle, putFloat, sData, ev->u.media_player_position_changed.new_position);
(*env)->DeleteLocalRef(env, sData); (*env)->DeleteLocalRef(env, sData);
} else if (ev->type == libvlc_MediaPlayerTimeChanged) { } else if (ev->type == libvlc_MediaPlayerTimeChanged) {
jstring sData = (*env)->NewStringUTF(env, "data"); 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, putInt, sData, (int) ev->u.media_player_time_changed.new_time);
...@@ -420,7 +420,7 @@ void Java_org_videolan_libvlc_LibVLC_playMRL(JNIEnv *env, jobject thiz, jlong in ...@@ -420,7 +420,7 @@ void Java_org_videolan_libvlc_LibVLC_playMRL(JNIEnv *env, jobject thiz, jlong in
(*env)->ReleaseStringUTFChars(env, option, p_st); (*env)->ReleaseStringUTFChars(env, option, p_st);
} }
} }
(*env)->ReleaseStringUTFChars(env, mrl, p_mrl); (*env)->ReleaseStringUTFChars(env, mrl, p_mrl);
/* Connect the media event manager. */ /* Connect the media event manager. */
......
...@@ -50,7 +50,7 @@ public class EventHandler { ...@@ -50,7 +50,7 @@ public class EventHandler {
//public static final int MediaPlayerBackward = 0x108; //public static final int MediaPlayerBackward = 0x108;
public static final int MediaPlayerEndReached = 0x109; public static final int MediaPlayerEndReached = 0x109;
public static final int MediaPlayerEncounteredError = 0x10a; public static final int MediaPlayerEncounteredError = 0x10a;
public static final int MediaPlayerTimeChanged = 0x10b; public static final int MediaPlayerTimeChanged = 0x10b;
public static final int MediaPlayerPositionChanged = 0x10c; public static final int MediaPlayerPositionChanged = 0x10c;
//public static final int MediaPlayerSeekableChanged = 0x10d; //public static final int MediaPlayerSeekableChanged = 0x10d;
//public static final int MediaPlayerPausableChanged = 0x10e; //public static final int MediaPlayerPausableChanged = 0x10e;
......
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