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
3dab8a80
Commit
3dab8a80
authored
Dec 21, 2011
by
Hugo Beauzée-Luyssen
Committed by
Jean-Baptiste Kempf
Dec 30, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dash: Basic CM parser: Parse some Representation attributes
Signed-off-by:
Jean-Baptiste Kempf
<
jb@videolan.org
>
parent
967fdaa4
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
24 additions
and
0 deletions
+24
-0
modules/stream_filter/dash/mpd/BasicCMParser.cpp
modules/stream_filter/dash/mpd/BasicCMParser.cpp
+24
-0
No files found.
modules/stream_filter/dash/mpd/BasicCMParser.cpp
View file @
3dab8a80
...
...
@@ -106,6 +106,30 @@ void BasicCMParser::setRepresentations (Node *root, Group *group)
delete
rep
;
continue
;
}
std
::
map
<
std
::
string
,
std
::
string
>::
const_iterator
it
;
it
=
attributes
.
find
(
"id"
);
if
(
it
==
attributes
.
end
()
)
{
std
::
cerr
<<
"Missing mandatory attribute for Representation: @id"
<<
std
::
endl
;
delete
rep
;
continue
;
}
rep
->
setId
(
it
->
second
);
it
=
attributes
.
find
(
"bandwidth"
);
if
(
it
==
attributes
.
end
()
)
{
std
::
cerr
<<
"Missing mandatory attribute for Representation: @bandwidth"
<<
std
::
endl
;
delete
rep
;
continue
;
}
rep
->
setBandwidth
(
atoi
(
it
->
second
.
c_str
()
)
);
it
=
attributes
.
find
(
"qualityRanking"
);
if
(
it
!=
attributes
.
end
()
)
rep
->
setQualityRanking
(
atoi
(
it
->
second
.
c_str
()
)
);
this
->
setSegmentInfo
(
representations
.
at
(
i
),
rep
);
if
(
rep
->
getSegmentInfo
()
&&
rep
->
getSegmentInfo
()
->
getSegments
().
size
()
>
0
)
group
->
addRepresentation
(
rep
);
...
...
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