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
b9e88f07
Commit
b9e88f07
authored
Jul 05, 2008
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Join and unload vout safely
parent
ec948357
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
+6
-6
src/video_output/video_output.c
src/video_output/video_output.c
+6
-6
No files found.
src/video_output/video_output.c
View file @
b9e88f07
...
...
@@ -131,6 +131,9 @@ vout_thread_t *__vout_Request( vlc_object_t *p_this, vout_thread_t *p_vout,
if
(
p_vout
)
{
spu_Attach
(
p_vout
->
p_spu
,
p_this
,
false
);
vlc_object_kill
(
p_vout
);
vlc_thread_join
(
p_vout
);
module_Unneed
(
p_vout
,
p_vout
->
p_module
);
vlc_object_release
(
p_vout
);
}
return
NULL
;
...
...
@@ -446,6 +449,9 @@ vout_thread_t * __vout_Create( vlc_object_t *p_parent, video_format_t *p_fmt )
msg_Err
(
p_vout
,
"video output creation failed"
);
/* Make sure the thread is destroyed and data released */
vlc_object_kill
(
p_vout
);
vlc_thread_join
(
p_vout
);
module_Unneed
(
p_vout
,
p_vout
->
p_module
);
vlc_object_release
(
p_vout
);
return
NULL
;
}
...
...
@@ -462,12 +468,6 @@ static void vout_Destructor( vlc_object_t * p_this )
vlc_mutex_destroy
(
&
p_vout
->
change_lock
);
vlc_mutex_destroy
(
&
p_vout
->
vfilter_lock
);
/* Release the module */
if
(
p_vout
->
p_module
)
{
module_Unneed
(
p_vout
,
p_vout
->
p_module
);
}
free
(
p_vout
->
psz_filter_chain
);
config_ChainDestroy
(
p_vout
->
p_cfg
);
...
...
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