Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-2-2
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-2-2
Commits
aeaf0da4
Commit
aeaf0da4
authored
May 28, 2008
by
Pierre d'Herbemont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
video_output: Make sure we check p_vout->b_die inside the object lock.
parent
d682e91e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
1 deletion
+10
-1
src/video_output/video_output.c
src/video_output/video_output.c
+10
-1
No files found.
src/video_output/video_output.c
View file @
aeaf0da4
...
...
@@ -762,6 +762,8 @@ static void RunThread( vout_thread_t *p_vout)
if
(
p_vout
->
b_error
)
return
;
vlc_object_lock
(
p_vout
);
if
(
p_vout
->
b_title_show
)
DisplayTitleOnOSD
(
p_vout
);
...
...
@@ -769,7 +771,7 @@ static void RunThread( vout_thread_t *p_vout)
* Main loop - it is not executed if an error occurred during
* initialization
*/
while
(
(
!
p_vout
->
b_die
)
&&
(
!
p_vout
->
b_error
)
)
while
(
(
vlc_object_alive
(
p_vout
)
)
&&
(
!
p_vout
->
b_error
)
)
{
/* Initialize loop variables */
p_picture
=
NULL
;
...
...
@@ -1091,6 +1093,8 @@ static void RunThread( vout_thread_t *p_vout)
/* Give back change lock */
vlc_mutex_unlock
(
&
p_vout
->
change_lock
);
vlc_object_unlock
(
p_vout
);
/* Sleep a while or until a given date */
if
(
display_date
!=
0
)
{
...
...
@@ -1108,6 +1112,9 @@ static void RunThread( vout_thread_t *p_vout)
/* On awakening, take back lock and send immediately picture
* to display. */
vlc_object_lock
(
p_vout
);
/* Note: vlc_object_alive() could be false here, and we
* could be dead */
vlc_mutex_lock
(
&
p_vout
->
change_lock
);
/*
...
...
@@ -1201,6 +1208,7 @@ static void RunThread( vout_thread_t *p_vout)
}
}
if
(
p_input
)
{
vlc_object_release
(
p_input
);
...
...
@@ -1216,6 +1224,7 @@ static void RunThread( vout_thread_t *p_vout)
/* End of thread */
EndThread
(
p_vout
);
vlc_object_unlock
(
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