Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-2-2
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
videolan
vlc-2-2
Commits
da316c39
Commit
da316c39
authored
May 29, 2008
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
libvlc_wait: wait until libvlc is killed by an interface
parent
8b270041
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
18 additions
and
0 deletions
+18
-0
include/vlc/libvlc.h
include/vlc/libvlc.h
+9
-0
src/control/core.c
src/control/core.c
+8
-0
src/libvlc.sym
src/libvlc.sym
+1
-0
No files found.
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
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