Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-1.1
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-1.1
Commits
8d0e42ed
Commit
8d0e42ed
authored
Sep 07, 2008
by
Laurent Aimar
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Do not msleep to wait for a die order.
parent
253ac451
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
13 deletions
+10
-13
src/input/input.c
src/input/input.c
+10
-13
No files found.
src/input/input.c
View file @
8d0e42ed
...
...
@@ -502,24 +502,20 @@ static void* Run( vlc_object_t *p_this )
{
/* If we failed, wait before we are killed, and exit */
WaitDie
(
p_input
);
/* Tell we're dead */
p_input
->
b_dead
=
true
;
vlc_restorecancel
(
canc
);
return
NULL
;
goto
exit
;
}
MainLoop
(
p_input
);
/* Wait until we are asked to die */
if
(
!
p_input
->
b_die
)
{
WaitDie
(
p_input
);
}
/* Clean up */
End
(
p_input
);
exit:
p_input
->
b_dead
=
true
;
vlc_restorecancel
(
canc
);
return
NULL
;
}
...
...
@@ -1306,11 +1302,12 @@ error:
static
void
WaitDie
(
input_thread_t
*
p_input
)
{
input_ChangeState
(
p_input
,
p_input
->
b_error
?
ERROR_S
:
END_S
);
while
(
!
p_input
->
b_die
)
{
/* Sleep a while */
msleep
(
INPUT_IDLE_SLEEP
);
}
/* Wait a die order */
vlc_object_lock
(
p_input
);
while
(
vlc_object_alive
(
p_input
)
)
vlc_object_wait
(
p_input
);
vlc_object_unlock
(
p_input
);
}
/*****************************************************************************
...
...
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