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
5deaed2b
Commit
5deaed2b
authored
May 17, 2002
by
Stéphane Borel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
*Don't keep the control lock during the pause
parent
a7e097b4
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
3 deletions
+7
-3
src/input/input_clock.c
src/input/input_clock.c
+7
-3
No files found.
src/input/input_clock.c
View file @
5deaed2b
...
...
@@ -2,7 +2,7 @@
* input_clock.c: Clock/System date convertions, stream management
*****************************************************************************
* Copyright (C) 1999-2001 VideoLAN
* $Id: input_clock.c,v 1.3
0 2002/05/14 21:23:44 massiot
Exp $
* $Id: input_clock.c,v 1.3
1 2002/05/17 18:06:34 stef
Exp $
*
* Authors: Christophe Massiot <massiot@via.ecp.fr>
*
...
...
@@ -155,10 +155,12 @@ int input_ClockManageControl( input_thread_t * p_input,
if
(
p_input
->
stream
.
i_new_status
==
PAUSE_S
)
{
int
i_old_status
;
vlc_mutex_lock
(
&
p_input
->
stream
.
control
.
control_lock
);
i_old_status
=
p_input
->
stream
.
control
.
i_status
;
p_input
->
stream
.
control
.
i_status
=
PAUSE_S
;
vlc_mutex_unlock
(
&
p_input
->
stream
.
control
.
control_lock
);
vlc_cond_wait
(
&
p_input
->
stream
.
stream_wait
,
&
p_input
->
stream
.
stream_lock
);
p_pgrm
->
last_syscr
=
0
;
...
...
@@ -167,13 +169,15 @@ int input_ClockManageControl( input_thread_t * p_input,
if
(
p_input
->
stream
.
i_new_status
==
PAUSE_S
)
{
/* PAUSE_S undoes the pause state: Return to old state. */
vlc_mutex_lock
(
&
p_input
->
stream
.
control
.
control_lock
);
p_input
->
stream
.
control
.
i_status
=
i_old_status
;
vlc_mutex_unlock
(
&
p_input
->
stream
.
control
.
control_lock
);
p_input
->
stream
.
i_new_status
=
UNDEF_S
;
p_input
->
stream
.
i_new_rate
=
UNDEF_S
;
}
/* We handle i_new_status != PAUSE_S below... */
vlc_mutex_unlock
(
&
p_input
->
stream
.
control
.
control_lock
);
i_return_value
=
PAUSE_S
;
}
...
...
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