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
2a212f7d
Commit
2a212f7d
authored
Dec 19, 2014
by
Francois Cartegnie
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
demux: dash: handle profiles list
parent
93b2b55f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
2 deletions
+14
-2
modules/stream_filter/dash/xml/DOMParser.cpp
modules/stream_filter/dash/xml/DOMParser.cpp
+14
-2
No files found.
modules/stream_filter/dash/xml/DOMParser.cpp
View file @
2a212f7d
...
...
@@ -166,12 +166,24 @@ bool DOMParser::isDash (stream_t *stream)
Profile
DOMParser
::
getProfile
()
const
{
Profile
res
(
Profile
::
Unknown
);
if
(
this
->
root
==
NULL
)
return
Profile
(
Profile
::
Unknown
)
;
return
res
;
std
::
string
urn
=
this
->
root
->
getAttributeValue
(
"profiles"
);
if
(
urn
.
length
()
==
0
)
urn
=
this
->
root
->
getAttributeValue
(
"profile"
);
//The standard spells it the both ways...
return
Profile
(
urn
);
size_t
pos
;
size_t
nextpos
=
-
1
;
do
{
pos
=
nextpos
+
1
;
nextpos
=
urn
.
find_first_of
(
","
,
pos
);
res
=
Profile
(
urn
.
substr
(
pos
,
nextpos
-
pos
));
}
while
(
nextpos
!=
std
::
string
::
npos
&&
res
==
Profile
::
Unknown
);
return
res
;
}
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