Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Open sidebar
GSoC
GSoC2018
macOS
vlc
Commits
f6b77b24
Commit
f6b77b24
authored
Feb 26, 2007
by
Laurent Aimar
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Improved vout_Request when using a vout attached to playlist.
(Avoid a possible race condition)
parent
3f615499
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
src/video_output/video_output.c
src/video_output/video_output.c
+2
-2
No files found.
src/video_output/video_output.c
View file @
f6b77b24
...
...
@@ -148,6 +148,8 @@ vout_thread_t *__vout_Request( vlc_object_t *p_this, vout_thread_t *p_vout,
vlc_object_release
(
p_vout
);
p_vout
=
NULL
;
}
if
(
p_vout
)
vlc_object_detach
(
p_vout
);
/* Remove it from the GC */
vlc_mutex_unlock
(
&
p_playlist
->
gc_lock
);
pl_Release
(
p_this
);
}
...
...
@@ -192,7 +194,6 @@ vout_thread_t *__vout_Request( vlc_object_t *p_this, vout_thread_t *p_vout,
p_vout
->
b_filter_change
)
{
/* We are not interested in this format, close this vout */
vlc_object_detach
(
p_vout
);
vlc_object_release
(
p_vout
);
vout_Destroy
(
p_vout
);
p_vout
=
NULL
;
...
...
@@ -200,7 +201,6 @@ vout_thread_t *__vout_Request( vlc_object_t *p_this, vout_thread_t *p_vout,
else
{
/* This video output is cool! Hijack it. */
vlc_object_detach
(
p_vout
);
spu_Attach
(
p_vout
->
p_spu
,
p_this
,
VLC_TRUE
);
vlc_object_attach
(
p_vout
,
p_this
);
vlc_object_release
(
p_vout
);
...
...
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