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
c6d907cf
Commit
c6d907cf
authored
Mar 30, 2015
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
input: fix changing state
parent
de2f058a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
20 deletions
+17
-20
src/input/input.c
src/input/input.c
+17
-20
No files found.
src/input/input.c
View file @
c6d907cf
...
@@ -1731,27 +1731,24 @@ static bool Control( input_thread_t *p_input,
...
@@ -1731,27 +1731,24 @@ static bool Control( input_thread_t *p_input,
}
}
case
INPUT_CONTROL_SET_STATE
:
case
INPUT_CONTROL_SET_STATE
:
if
(
val
.
i_int
!=
PLAYING_S
&&
val
.
i_int
!=
PAUSE_S
)
switch
(
val
.
i_int
)
msg_Err
(
p_input
,
"invalid state in INPUT_CONTROL_SET_STATE"
);
else
if
(
p_input
->
p
->
i_state
==
PAUSE_S
)
{
{
ControlUnpause
(
p_input
,
i_control_date
);
case
PLAYING_S
:
if
(
p_input
->
p
->
i_state
==
PAUSE_S
)
b_force_update
=
true
;
{
}
ControlUnpause
(
p_input
,
i_control_date
);
else
if
(
val
.
i_int
==
PAUSE_S
&&
p_input
->
p
->
i_state
==
PLAYING_S
/* &&
b_force_update
=
true
;
p_input->p->b_can_pause */
)
}
{
break
;
ControlPause
(
p_input
,
i_control_date
);
case
PAUSE_S
:
if
(
p_input
->
p
->
i_state
==
PLAYING_S
)
b_force_update
=
true
;
{
}
ControlPause
(
p_input
,
i_control_date
);
else
if
(
val
.
i_int
==
PAUSE_S
&&
!
p_input
->
p
->
b_can_pause
&&
0
)
b_force_update
=
true
;
{
}
b_force_update
=
true
;
break
;
default:
/* Correct "state" value */
msg_Err
(
p_input
,
"invalid INPUT_CONTROL_SET_STATE"
);
input_ChangeState
(
p_input
,
p_input
->
p
->
i_state
);
}
}
break
;
break
;
...
...
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