Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Gautam Chitnis
web-ui-redesign
Commits
da316c39
Commit
da316c39
authored
May 29, 2008
by
Rémi Denis-Courmont
Browse files
libvlc_wait: wait until libvlc is killed by an interface
parent
8b270041
Changes
3
Hide whitespace changes
Inline
Side-by-side
include/vlc/libvlc.h
View file @
da316c39
...
...
@@ -157,6 +157,15 @@ VLC_PUBLIC_API
void
libvlc_run_interface
(
libvlc_instance_t
*
p_instance
,
const
char
*
name
,
libvlc_exception_t
*
p_exception
);
/**
* Waits until an interface causes the instance to exit.
* You should start at least one interface first, using libvlc_add_intf().
*
* \param p_instance the instance
*/
VLC_PUBLIC_API
void
libvlc_wait
(
libvlc_instance_t
*
p_instance
);
/**
* Retrieve libvlc version.
*
...
...
src/control/core.c
View file @
da316c39
...
...
@@ -173,6 +173,14 @@ void libvlc_run_interface( libvlc_instance_t *p_i, const char *name,
RAISEVOID
(
"Interface initialization failed"
);
}
void
libvlc_wait
(
libvlc_instance_t
*
p_i
)
{
libvlc_int_t
*
p_libvlc
=
p_i
->
p_libvlc_int
;
vlc_object_lock
(
p_libvlc
);
while
(
!
vlc_object_wait
(
p_libvlc
)
);
vlc_object_unlock
(
p_libvlc
);
}
int
libvlc_get_vlc_id
(
libvlc_instance_t
*
p_instance
)
{
return
p_instance
->
p_libvlc_int
->
i_object_id
;
...
...
src/libvlc.sym
View file @
da316c39
...
...
@@ -203,6 +203,7 @@ libvlc_vlm_set_loop
libvlc_vlm_set_output
libvlc_vlm_show_media
libvlc_vlm_stop_media
libvlc_wait
mediacontrol_RGBPicture__free
mediacontrol_StreamInformation__free
mediacontrol_display_text
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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