Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Steve Lhomme
VLC
Commits
c0330795
Commit
c0330795
authored
Oct 19, 2006
by
littlejohn
Browse files
make playlist stop synchronous
parent
30ff7129
Changes
1
Hide whitespace changes
Inline
Side-by-side
bindings/java/src/playlist-jni.cc
View file @
c0330795
...
...
@@ -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
;
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment