Commit 80f1a853 authored by Hugo Beauzée-Luyssen's avatar Hugo Beauzée-Luyssen

hls: Cosmetics.

parent fc50e57a
...@@ -577,20 +577,20 @@ static int parse_SegmentInformation(hls_stream_t *hls, char *p_read, int *durati ...@@ -577,20 +577,20 @@ static int parse_SegmentInformation(hls_stream_t *hls, char *p_read, int *durati
char *endptr; char *endptr;
if (hls->version < 3) if (hls->version < 3)
{ {
errno = 0; errno = 0;
value = strtol(token, &endptr, 10); value = strtol(token, &endptr, 10);
if (token == endptr || errno == ERANGE ) if (token == endptr || errno == ERANGE)
{ {
*duration = -1; *duration = -1;
return VLC_EGENERIC; return VLC_EGENERIC;
} }
*duration = value; *duration = value;
} }
else else
{ {
errno = 0; errno = 0;
double d = strtof(token, &endptr); double d = strtof(token, &endptr);
if (token == endptr || errno == ERANGE ) if (token == endptr || errno == ERANGE)
{ {
*duration = -1; *duration = -1;
return VLC_EGENERIC; return VLC_EGENERIC;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment