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
121f1710
Commit
121f1710
authored
Mar 09, 2012
by
Christopher Mueller
Committed by
Hugo Beauzée-Luyssen
Mar 20, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dash: fixed warnings in basiccm and isoffmainmanager
Signed-off-by:
Hugo Beauzée-Luyssen
<
beauze.h@gmail.com
>
parent
60ceaa11
Changes
5
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
10 additions
and
16 deletions
+10
-16
modules/stream_filter/dash/mpd/BasicCMManager.cpp
modules/stream_filter/dash/mpd/BasicCMManager.cpp
+1
-1
modules/stream_filter/dash/mpd/BasicCMParser.cpp
modules/stream_filter/dash/mpd/BasicCMParser.cpp
+0
-6
modules/stream_filter/dash/mpd/IsoffMainManager.cpp
modules/stream_filter/dash/mpd/IsoffMainManager.cpp
+2
-2
modules/stream_filter/dash/mpd/Representation.cpp
modules/stream_filter/dash/mpd/Representation.cpp
+4
-4
modules/stream_filter/dash/mpd/Representation.h
modules/stream_filter/dash/mpd/Representation.h
+3
-3
No files found.
modules/stream_filter/dash/mpd/BasicCMManager.cpp
View file @
121f1710
...
...
@@ -103,7 +103,7 @@ Representation* BasicCMManager::getRepresentation(Period *period, uint64
std
::
vector
<
Representation
*>
reps
=
groups
.
at
(
i
)
->
getRepresentations
();
for
(
size_t
j
=
0
;
j
<
reps
.
size
();
j
++
)
{
int
currentBitrate
=
reps
.
at
(
j
)
->
getBandwidth
();
uint64_t
currentBitrate
=
reps
.
at
(
j
)
->
getBandwidth
();
assert
(
currentBitrate
!=
-
1
);
if
(
best
==
NULL
||
...
...
modules/stream_filter/dash/mpd/BasicCMParser.cpp
View file @
121f1710
...
...
@@ -501,12 +501,6 @@ bool BasicCMParser::resolveUrlTemplates( std::string &url, bool &containRunti
}
else
if
(
token
==
"$Bandwidth$"
)
{
if
(
this
->
currentRepresentation
->
getBandwidth
()
<
0
)
{
std
::
cerr
<<
"Representation doesn't have a valid bandwidth. "
"Can't substitute tag $Bandwidth$"
<<
std
::
endl
;
return
false
;
}
std
::
ostringstream
oss
;
oss
<<
this
->
currentRepresentation
->
getBandwidth
();
url
.
replace
(
it
,
token
.
length
(),
oss
.
str
()
);
...
...
modules/stream_filter/dash/mpd/IsoffMainManager.cpp
View file @
121f1710
...
...
@@ -102,7 +102,7 @@ Representation* IsoffMainManager::getRepresentation (Period *per
std
::
vector
<
Representation
*>
reps
=
adaptationSets
.
at
(
i
)
->
getRepresentations
();
for
(
size_t
j
=
0
;
j
<
reps
.
size
();
j
++
)
{
in
t
currentBitrate
=
reps
.
at
(
j
)
->
getBandwidth
();
uint64_
t
currentBitrate
=
reps
.
at
(
j
)
->
getBandwidth
();
if
(
best
==
NULL
||
(
currentBitrate
>
best
->
getBandwidth
()
&&
currentBitrate
<
bitrate
))
{
...
...
@@ -165,7 +165,7 @@ Representation* IsoffMainManager::getRepresentation (Period *per
Representation
*
best
=
NULL
;
for
(
size_t
j
=
0
;
j
<
resMatchReps
.
size
();
j
++
)
{
in
t
currentBitrate
=
resMatchReps
.
at
(
j
)
->
getBandwidth
();
uint64_
t
currentBitrate
=
resMatchReps
.
at
(
j
)
->
getBandwidth
();
if
(
best
==
NULL
||
(
currentBitrate
>
best
->
getBandwidth
()
&&
currentBitrate
<
bitrate
))
{
...
...
modules/stream_filter/dash/mpd/Representation.cpp
View file @
121f1710
...
...
@@ -32,6 +32,7 @@
using
namespace
dash
::
mpd
;
Representation
::
Representation
()
:
bandwidth
(
0
),
qualityRanking
(
-
1
),
segmentInfo
(
NULL
),
trickModeType
(
NULL
),
...
...
@@ -61,14 +62,13 @@ void Representation::setId(const std::string &id)
this
->
id
=
id
;
}
in
t
Representation
::
getBandwidth
()
const
uint64_
t
Representation
::
getBandwidth
()
const
{
return
this
->
bandwidth
;
}
void
Representation
::
setBandwidth
(
in
t
bandwidth
)
void
Representation
::
setBandwidth
(
uint64_
t
bandwidth
)
{
if
(
bandwidth
>=
0
)
this
->
bandwidth
=
bandwidth
;
}
...
...
modules/stream_filter/dash/mpd/Representation.h
View file @
121f1710
...
...
@@ -53,8 +53,8 @@ namespace dash
* Will be a valid value, as the parser refuses Representation
* without bandwidth.
*/
int
getBandwidth
()
const
;
void
setBandwidth
(
in
t
bandwidth
);
uint64_t
getBandwidth
()
const
;
void
setBandwidth
(
uint64_
t
bandwidth
);
int
getQualityRanking
()
const
;
void
setQualityRanking
(
int
qualityRanking
);
const
std
::
list
<
const
Representation
*>&
getDependencies
()
const
;
...
...
@@ -82,7 +82,7 @@ namespace dash
int
getHeight
()
const
;
private:
int
bandwidth
;
uint64_t
bandwidth
;
std
::
string
id
;
int
qualityRanking
;
std
::
list
<
const
Representation
*>
dependencies
;
...
...
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