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
81900b24
Commit
81900b24
authored
Sep 03, 2009
by
Laurent Aimar
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Checked demux_Control return value in input.
parent
21cd1cd4
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
src/input/input.c
src/input/input.c
+5
-5
No files found.
src/input/input.c
View file @
81900b24
...
...
@@ -1669,9 +1669,8 @@ static bool Control( input_thread_t *p_input,
int64_t
i_length
;
/* Emulate it with a SET_POS */
demux_Control
(
p_input
->
p
->
input
.
p_demux
,
DEMUX_GET_LENGTH
,
&
i_length
);
if
(
i_length
>
0
)
if
(
!
demux_Control
(
p_input
->
p
->
input
.
p_demux
,
DEMUX_GET_LENGTH
,
&
i_length
)
&&
i_length
>
0
)
{
double
f_pos
=
(
double
)
i_time
/
(
double
)
i_length
;
i_ret
=
demux_Control
(
p_input
->
p
->
input
.
p_demux
,
...
...
@@ -2429,8 +2428,9 @@ static int InputSourceInit( input_thread_t *p_input,
if
(
in
->
p_demux
)
{
/* Get infos from access_demux */
demux_Control
(
in
->
p_demux
,
DEMUX_GET_PTS_DELAY
,
&
in
->
i_pts_delay
);
int
i_ret
=
demux_Control
(
in
->
p_demux
,
DEMUX_GET_PTS_DELAY
,
&
in
->
i_pts_delay
);
assert
(
!
i_ret
);
in
->
i_pts_delay
=
__MAX
(
0
,
__MIN
(
in
->
i_pts_delay
,
INPUT_PTS_DELAY_MAX
)
);
...
...
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