Commit c0330795 authored by Filippo Carone's avatar Filippo Carone

make playlist stop synchronous

parent 30ff7129
......@@ -26,6 +26,8 @@
/* These are a must*/
#include <jni.h>
#include <vlc/libvlc.h>
#include <unistd.h>
#include <stdio.h>
/* JVLC internal imports, generated by gcjh */
#include "../includes/Playlist.h"
......@@ -111,6 +113,12 @@ JNIEXPORT void JNICALL Java_org_videolan_jvlc_Playlist__1stop (JNIEnv *env, jobj
INIT_FUNCTION ;
libvlc_playlist_stop( ( libvlc_instance_t* ) instance, exception );
while ( libvlc_playlist_isplaying( (libvlc_instance_t*) instance, exception ) )
{
usleep(100);
}
CHECK_EXCEPTION_FREE ;
}
......
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