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
7eb141b4
Commit
7eb141b4
authored
Mar 09, 2012
by
Hugo Beauzée-Luyssen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
hls: Avoid using errno.
parent
8a570321
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
4 deletions
+5
-4
modules/stream_filter/httplive.c
modules/stream_filter/httplive.c
+5
-4
No files found.
modules/stream_filter/httplive.c
View file @
7eb141b4
...
@@ -574,10 +574,11 @@ static int parse_SegmentInformation(hls_stream_t *hls, char *p_read, int *durati
...
@@ -574,10 +574,11 @@ static int parse_SegmentInformation(hls_stream_t *hls, char *p_read, int *durati
return
VLC_EGENERIC
;
return
VLC_EGENERIC
;
int
value
;
int
value
;
char
*
endptr
;
if
(
hls
->
version
<
3
)
if
(
hls
->
version
<
3
)
{
{
value
=
strtol
(
token
,
NULL
,
10
);
value
=
strtol
(
token
,
&
endptr
,
10
);
if
(
errno
==
ERANGE
)
if
(
token
==
endptr
)
{
{
*
duration
=
-
1
;
*
duration
=
-
1
;
return
VLC_EGENERIC
;
return
VLC_EGENERIC
;
...
@@ -586,8 +587,8 @@ static int parse_SegmentInformation(hls_stream_t *hls, char *p_read, int *durati
...
@@ -586,8 +587,8 @@ static int parse_SegmentInformation(hls_stream_t *hls, char *p_read, int *durati
}
}
else
else
{
{
double
d
=
strto
d
(
token
,
(
char
**
)
NULL
);
double
d
=
strto
f
(
token
,
&
endptr
);
if
(
errno
==
ERANGE
)
if
(
token
==
endptr
)
{
{
*
duration
=
-
1
;
*
duration
=
-
1
;
return
VLC_EGENERIC
;
return
VLC_EGENERIC
;
...
...
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