libvlc events related functions renamed
authorFilippo Carone <littlejohn@videolan.org>
Sun, 20 May 2007 18:00:54 +0000 (18:00 +0000)
committerFilippo Carone <littlejohn@videolan.org>
Sun, 20 May 2007 18:00:54 +0000 (18:00 +0000)
src/callback-jni.cc

index 4c8b1e9..2c2c8ac 100644 (file)
@@ -56,11 +56,11 @@ JNIEXPORT void JNICALL Java_org_videolan_jvlc_Audio__1install_1callback( JNIEnv
        wakeupListenersMethod = env->GetStaticMethodID(audioClass, "wakeupListeners", "()V");
     }
 
-    libvlc_callback_register_for_event( ( libvlc_instance_t* ) instance,
-                                       VOLUME_CHANGED,
-                                       volumeChangedCallback,
-                                       NULL,
-                                       exception );
+    libvlc_event_add_callback( ( libvlc_instance_t* ) instance,
+                              VOLUME_CHANGED,
+                              volumeChangedCallback,
+                              NULL,
+                              exception );
     CHECK_EXCEPTION_FREE ;
 }