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
d2ff9ebf
Commit
d2ff9ebf
authored
Jul 05, 2008
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
interaction: safely join the thread
parent
8f231e30
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
12 additions
and
2 deletions
+12
-2
src/interface/interaction.c
src/interface/interaction.c
+10
-0
src/interface/interface.h
src/interface/interface.h
+1
-1
src/libvlc.c
src/libvlc.c
+1
-1
No files found.
src/interface/interaction.c
View file @
d2ff9ebf
...
...
@@ -388,6 +388,16 @@ interaction_t * interaction_Init( libvlc_int_t *p_libvlc )
return
p_interaction
;
}
void
interaction_Destroy
(
interaction_t
*
p_interaction
)
{
if
(
!
p_interaction
)
return
;
vlc_object_kill
(
p_interaction
);
vlc_thread_join
(
p_interaction
);
vlc_object_release
(
p_interaction
);
}
/**********************************************************************
* The following functions are local
**********************************************************************/
...
...
src/interface/interface.h
View file @
d2ff9ebf
...
...
@@ -34,7 +34,7 @@
* Interaction
**********************************************************************/
/* release via vlc_object_release() */
interaction_t
*
interaction_Init
(
libvlc_int_t
*
p_libvlc
);
void
interaction_Destroy
(
interaction_t
*
);
#endif
src/libvlc.c
View file @
d2ff9ebf
...
...
@@ -964,7 +964,7 @@ int libvlc_InternalCleanup( libvlc_int_t *p_libvlc )
/* Free interaction */
msg_Dbg
(
p_libvlc
,
"removing interaction"
);
vlc_object_release
(
priv
->
p_interaction
);
interaction_Destroy
(
priv
->
p_interaction
);
/* Free video outputs */
msg_Dbg
(
p_libvlc
,
"removing all video outputs"
);
...
...
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