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
56a345ef
Commit
56a345ef
authored
Jan 20, 2012
by
Hugo Beauzée-Luyssen
Committed by
Jean-Baptiste Kempf
Jan 23, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
hls: Don't fail when a STREAM-INF is commented.
Signed-off-by:
Jean-Baptiste Kempf
<
jb@videolan.org
>
parent
9ffcb9c5
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
26 additions
and
18 deletions
+26
-18
modules/stream_filter/httplive.c
modules/stream_filter/httplive.c
+26
-18
No files found.
modules/stream_filter/httplive.c
View file @
56a345ef
...
@@ -1033,6 +1033,13 @@ static int parse_M3U8(stream_t *s, vlc_array_t *streams, uint8_t *buffer, const
...
@@ -1033,6 +1033,13 @@ static int parse_M3U8(stream_t *s, vlc_array_t *streams, uint8_t *buffer, const
if
(
uri
==
NULL
)
if
(
uri
==
NULL
)
err
=
VLC_ENOMEM
;
err
=
VLC_ENOMEM
;
else
else
{
if
(
*
uri
==
'#'
)
{
msg_Info
(
s
,
"Skipping invalid stream-inf: %s"
,
uri
);
free
(
uri
);
}
else
{
{
hls_stream_t
*
hls
=
NULL
;
hls_stream_t
*
hls
=
NULL
;
err
=
parse_StreamInformation
(
s
,
&
streams
,
&
hls
,
line
,
uri
);
err
=
parse_StreamInformation
(
s
,
&
streams
,
&
hls
,
line
,
uri
);
...
@@ -1057,6 +1064,7 @@ static int parse_M3U8(stream_t *s, vlc_array_t *streams, uint8_t *buffer, const
...
@@ -1057,6 +1064,7 @@ static int parse_M3U8(stream_t *s, vlc_array_t *streams, uint8_t *buffer, const
hls
->
size
=
hls_GetStreamSize
(
hls
);
/* Stream size (approximate) */
hls
->
size
=
hls_GetStreamSize
(
hls
);
/* Stream size (approximate) */
}
}
}
}
}
p_begin
=
p_read
;
p_begin
=
p_read
;
}
}
...
...
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