Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc
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
Commits
ce269bfe
Commit
ce269bfe
authored
Jan 24, 2009
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use libvlc_InternalWait
parent
2e685724
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
8 deletions
+2
-8
src/control/core.c
src/control/core.c
+1
-4
src/interface/interface.c
src/interface/interface.c
+1
-4
No files found.
src/control/core.c
View file @
ce269bfe
...
@@ -184,10 +184,7 @@ void libvlc_add_intf( libvlc_instance_t *p_i, const char *name,
...
@@ -184,10 +184,7 @@ void libvlc_add_intf( libvlc_instance_t *p_i, const char *name,
void
libvlc_wait
(
libvlc_instance_t
*
p_i
)
void
libvlc_wait
(
libvlc_instance_t
*
p_i
)
{
{
libvlc_int_t
*
p_libvlc
=
p_i
->
p_libvlc_int
;
libvlc_int_t
*
p_libvlc
=
p_i
->
p_libvlc_int
;
vlc_object_lock
(
p_libvlc
);
libvlc_InternalWait
(
p_libvlc
);
while
(
vlc_object_alive
(
p_libvlc
)
)
vlc_object_wait
(
p_libvlc
);
vlc_object_unlock
(
p_libvlc
);
}
}
int
libvlc_get_vlc_id
(
libvlc_instance_t
*
p_instance
)
int
libvlc_get_vlc_id
(
libvlc_instance_t
*
p_instance
)
...
...
src/interface/interface.c
View file @
ce269bfe
...
@@ -240,10 +240,7 @@ static void * MonitorLibVLCDeath( vlc_object_t * p_this )
...
@@ -240,10 +240,7 @@ static void * MonitorLibVLCDeath( vlc_object_t * p_this )
libvlc_int_t
*
p_libvlc
=
p_intf
->
p_libvlc
;
libvlc_int_t
*
p_libvlc
=
p_intf
->
p_libvlc
;
int
canc
=
vlc_savecancel
();
int
canc
=
vlc_savecancel
();
vlc_object_lock
(
p_libvlc
);
libvlc_InternalWait
(
p_libvlc
);
while
(
vlc_object_alive
(
p_libvlc
)
)
vlc_object_wait
(
p_libvlc
);
vlc_object_unlock
(
p_libvlc
);
vlc_object_kill
(
p_intf
);
/* Kill the stupid first thread interface */
vlc_object_kill
(
p_intf
);
/* Kill the stupid first thread interface */
vlc_restorecancel
(
canc
);
vlc_restorecancel
(
canc
);
...
...
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