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
17f7c2ea
Commit
17f7c2ea
authored
Jun 06, 2015
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
input: go to error rather than end state upon failure to resume
parent
54776b96
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
12 deletions
+8
-12
src/input/input.c
src/input/input.c
+8
-12
No files found.
src/input/input.c
View file @
17f7c2ea
...
...
@@ -1579,29 +1579,25 @@ static void ControlPause( input_thread_t *p_input, mtime_t i_control_date )
static
void
ControlUnpause
(
input_thread_t
*
p_input
,
mtime_t
i_control_date
)
{
int
i_ret
=
VLC_SUCCESS
;
if
(
p_input
->
p
->
b_can_pause
)
{
demux_t
*
p_demux
=
p_input
->
p
->
input
.
p_demux
;
int
ret
;
if
(
p_demux
->
s
!=
NULL
)
i_
ret
=
stream_Control
(
p_demux
->
s
,
STREAM_SET_PAUSE_STATE
,
false
);
ret
=
stream_Control
(
p_demux
->
s
,
STREAM_SET_PAUSE_STATE
,
false
);
else
i_
ret
=
demux_Control
(
p_demux
,
DEMUX_SET_PAUSE_STATE
,
false
);
if
(
i_ret
)
ret
=
demux_Control
(
p_demux
,
DEMUX_SET_PAUSE_STATE
,
false
);
if
(
ret
!=
VLC_SUCCESS
)
{
/* FIXME What to do ? */
msg_Warn
(
p_input
,
"cannot unset pause -> EOF"
);
input_ControlPush
(
p_input
,
INPUT_CONTROL_SET_DIE
,
NULL
)
;
msg_Err
(
p_input
,
"cannot resume"
);
input_ChangeState
(
p_input
,
ERROR_S
);
return
;
}
}
/* Switch to play */
input_ChangeState
(
p_input
,
PLAYING_S
);
/* */
if
(
!
i_ret
)
es_out_SetPauseState
(
p_input
->
p
->
p_es_out
,
false
,
false
,
i_control_date
);
}
...
...
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