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
b9a08055
Commit
b9a08055
authored
Dec 11, 2013
by
Ilkka Ollakka
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
livehttp: parse key="value" style options
parent
46e2b31e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
1 deletion
+13
-1
modules/stream_filter/httplive.c
modules/stream_filter/httplive.c
+13
-1
No files found.
modules/stream_filter/httplive.c
View file @
b9a08055
...
...
@@ -496,9 +496,21 @@ static char *parse_Attributes(const char *line, const char *attr)
if
(
strncasecmp
(
begin
,
attr
,
strlen
(
attr
))
==
0
&&
begin
[
strlen
(
attr
)]
==
'='
)
{
/* <attr>=
<value>
[,]* */
/* <attr>=
"<value>"
[,]* */
p
=
strchr
(
begin
,
','
);
begin
+=
strlen
(
attr
)
+
1
;
/* Check if we have " " marked value*/
if
(
begin
[
0
]
==
'"'
)
{
char
*
valueend
=
strchr
(
begin
+
1
,
'"'
);
/* No ending " so bail out */
if
(
unlikely
(
!
valueend
)
)
return
NULL
;
p
=
strchr
(
valueend
,
','
);
}
if
(
begin
>=
end
)
return
NULL
;
if
(
p
==
NULL
)
/* last attribute */
...
...
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