Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-gpu
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-gpu
Commits
4d654a48
Commit
4d654a48
authored
Jul 05, 2008
by
Pierre d'Herbemont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
interface: Make sure the MonitorLibVLCDeath thread exit.
parent
7291c459
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
0 deletions
+14
-0
src/interface/interface.c
src/interface/interface.c
+14
-0
No files found.
src/interface/interface.c
View file @
4d654a48
...
...
@@ -147,6 +147,13 @@ int intf_RunThread( intf_thread_t *p_intf )
return
VLC_EGENERIC
;
}
RunInterface
(
p_intf
);
/* Make sure our MonitorLibVLCDeath thread exit */
vlc_object_kill
(
p_intf
);
/* It is monitoring libvlc, not the p_intf */
vlc_object_signal
(
p_intf
->
p_libvlc
);
vlc_thread_join
(
p_intf
);
vlc_object_detach
(
p_intf
);
vlc_object_release
(
p_intf
);
return
VLC_SUCCESS
;
...
...
@@ -255,7 +262,14 @@ static void MonitorLibVLCDeath( intf_thread_t *p_intf )
libvlc_int_t
*
p_libvlc
=
p_intf
->
p_libvlc
;
vlc_object_lock
(
p_libvlc
);
while
(
vlc_object_alive
(
p_libvlc
)
)
{
if
(
p_intf
->
b_die
)
{
vlc_object_unlock
(
p_libvlc
);
return
;
}
vlc_object_wait
(
p_libvlc
);
}
vlc_object_unlock
(
p_libvlc
);
/* Someone killed libvlc */
...
...
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