Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Open sidebar
Steve Lhomme
VLC
Commits
7d42832c
Commit
7d42832c
authored
Dec 17, 2014
by
François Cartegnie
🤞
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
stream_filter: dash: better indent for debug
parent
72a278f6
Changes
9
Hide whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
50 additions
and
26 deletions
+50
-26
modules/stream_filter/dash/mpd/AdaptationSet.cpp
modules/stream_filter/dash/mpd/AdaptationSet.cpp
+15
-0
modules/stream_filter/dash/mpd/AdaptationSet.h
modules/stream_filter/dash/mpd/AdaptationSet.h
+1
-0
modules/stream_filter/dash/mpd/IsoffMainParser.cpp
modules/stream_filter/dash/mpd/IsoffMainParser.cpp
+4
-14
modules/stream_filter/dash/mpd/Period.cpp
modules/stream_filter/dash/mpd/Period.cpp
+15
-0
modules/stream_filter/dash/mpd/Period.h
modules/stream_filter/dash/mpd/Period.h
+1
-0
modules/stream_filter/dash/mpd/Representation.cpp
modules/stream_filter/dash/mpd/Representation.cpp
+5
-3
modules/stream_filter/dash/mpd/Representation.h
modules/stream_filter/dash/mpd/Representation.h
+1
-1
modules/stream_filter/dash/mpd/Segment.cpp
modules/stream_filter/dash/mpd/Segment.cpp
+6
-6
modules/stream_filter/dash/mpd/Segment.h
modules/stream_filter/dash/mpd/Segment.h
+2
-2
No files found.
modules/stream_filter/dash/mpd/AdaptationSet.cpp
View file @
7d42832c
...
...
@@ -119,3 +119,18 @@ Url AdaptationSet::getUrlSegment() const
{
return
getParentUrlSegment
();
}
std
::
vector
<
std
::
string
>
AdaptationSet
::
toString
(
int
indent
)
const
{
std
::
vector
<
std
::
string
>
ret
;
std
::
string
text
(
indent
,
' '
);
text
.
append
(
"AdaptationSet"
);
ret
.
push_back
(
text
);
std
::
vector
<
Representation
*>::
const_iterator
k
;
for
(
k
=
representations
.
begin
();
k
!=
representations
.
end
();
k
++
)
{
std
::
vector
<
std
::
string
>
debug
=
(
*
k
)
->
toString
(
indent
+
1
);
ret
.
insert
(
ret
.
end
(),
debug
.
begin
(),
debug
.
end
());
}
return
ret
;
}
modules/stream_filter/dash/mpd/AdaptationSet.h
View file @
7d42832c
...
...
@@ -59,6 +59,7 @@ namespace dash
bool
getBitstreamSwitching
()
const
;
void
addRepresentation
(
Representation
*
rep
);
virtual
Url
getUrlSegment
()
const
;
/* reimpl */
std
::
vector
<
std
::
string
>
toString
(
int
=
0
)
const
;
private:
bool
subsegmentAlignmentFlag
;
...
...
modules/stream_filter/dash/mpd/IsoffMainParser.cpp
View file @
7d42832c
...
...
@@ -335,21 +335,11 @@ void IsoffMainParser::print ()
std
::
vector
<
Period
*>::
const_iterator
i
;
for
(
i
=
mpd
->
getPeriods
().
begin
();
i
!=
mpd
->
getPeriods
().
end
();
i
++
)
{
msg_Dbg
(
p_stream
,
" Period"
);
std
::
vector
<
AdaptationSet
*
>::
const_iterator
j
;
for
(
j
=
(
*
i
)
->
getAdaptationSets
().
begin
();
j
!=
(
*
i
)
->
getAdaptationSets
()
.
end
();
j
++
)
std
::
vector
<
std
::
string
>
debug
=
(
*
i
)
->
toString
(
);
std
::
vector
<
std
::
string
>::
const_iterator
l
;
for
(
l
=
debug
.
begin
();
l
<
debug
.
end
();
l
++
)
{
msg_Dbg
(
p_stream
,
" AdaptationSet"
);
std
::
vector
<
Representation
*>::
const_iterator
k
;
for
(
k
=
(
*
j
)
->
getRepresentations
().
begin
();
k
!=
(
*
j
)
->
getRepresentations
().
end
();
k
++
)
{
std
::
vector
<
std
::
string
>
debug
=
(
*
k
)
->
toString
();
std
::
vector
<
std
::
string
>::
const_iterator
l
;
for
(
l
=
debug
.
begin
();
l
<
debug
.
end
();
l
++
)
{
msg_Dbg
(
p_stream
,
"%s"
,
(
*
l
).
c_str
());
}
}
msg_Dbg
(
p_stream
,
"%s"
,
(
*
l
).
c_str
());
}
}
}
...
...
modules/stream_filter/dash/mpd/Period.cpp
View file @
7d42832c
...
...
@@ -82,3 +82,18 @@ Url Period::getUrlSegment() const
{
return
getParentUrlSegment
();
}
std
::
vector
<
std
::
string
>
Period
::
toString
(
int
indent
)
const
{
std
::
vector
<
std
::
string
>
ret
;
std
::
string
text
(
indent
,
' '
);
text
.
append
(
"Period"
);
ret
.
push_back
(
text
);
std
::
vector
<
AdaptationSet
*>::
const_iterator
k
;
for
(
k
=
adaptationSets
.
begin
();
k
!=
adaptationSets
.
end
();
k
++
)
{
std
::
vector
<
std
::
string
>
debug
=
(
*
k
)
->
toString
(
indent
+
1
);
ret
.
insert
(
ret
.
end
(),
debug
.
begin
(),
debug
.
end
());
}
return
ret
;
}
modules/stream_filter/dash/mpd/Period.h
View file @
7d42832c
...
...
@@ -48,6 +48,7 @@ namespace dash
const
std
::
vector
<
AdaptationSet
*>
getAdaptationSets
(
Streams
::
Type
)
const
;
AdaptationSet
*
getAdaptationSet
(
Streams
::
Type
)
const
;
void
addAdaptationSet
(
AdaptationSet
*
AdaptationSet
);
std
::
vector
<
std
::
string
>
toString
(
int
=
0
)
const
;
virtual
Url
getUrlSegment
()
const
;
/* reimpl */
...
...
modules/stream_filter/dash/mpd/Representation.cpp
View file @
7d42832c
...
...
@@ -132,14 +132,16 @@ int Representation::getHeight () const
return
this
->
height
;
}
std
::
vector
<
std
::
string
>
Representation
::
toString
()
const
std
::
vector
<
std
::
string
>
Representation
::
toString
(
int
indent
)
const
{
std
::
vector
<
std
::
string
>
ret
;
ret
.
push_back
(
std
::
string
(
" Representation"
));
std
::
string
text
(
indent
,
' '
);
text
.
append
(
"Representation"
);
ret
.
push_back
(
text
);
std
::
vector
<
ISegment
*>
list
=
getSegments
();
std
::
vector
<
ISegment
*>::
const_iterator
l
;
for
(
l
=
list
.
begin
();
l
<
list
.
end
();
l
++
)
ret
.
push_back
((
*
l
)
->
toString
());
ret
.
push_back
((
*
l
)
->
toString
(
indent
+
1
));
return
ret
;
}
...
...
modules/stream_filter/dash/mpd/Representation.h
View file @
7d42832c
...
...
@@ -79,7 +79,7 @@ namespace dash
void
setBaseUrl
(
BaseUrl
*
baseUrl
);
MPD
*
getMPD
()
const
;
std
::
vector
<
std
::
string
>
toString
()
const
;
std
::
vector
<
std
::
string
>
toString
(
int
=
0
)
const
;
virtual
Url
getUrlSegment
()
const
;
/* impl */
private:
...
...
modules/stream_filter/dash/mpd/Segment.cpp
View file @
7d42832c
...
...
@@ -116,10 +116,10 @@ size_t ISegment::getOffset() const
return
startByte
;
}
std
::
string
ISegment
::
toString
()
const
std
::
string
ISegment
::
toString
(
int
indent
)
const
{
std
::
stringstream
ss
(
" "
)
;
ss
<<
debugName
<<
" url="
<<
getUrlSegment
().
toString
();
std
::
stringstream
ss
;
ss
<<
std
::
string
(
indent
,
' '
)
<<
debugName
<<
" url="
<<
getUrlSegment
().
toString
();
if
(
startByte
!=
endByte
)
ss
<<
" @"
<<
startByte
<<
".."
<<
endByte
;
return
ss
.
str
();
...
...
@@ -174,11 +174,11 @@ void Segment::setSourceUrl ( const std::string &url )
this
->
sourceUrl
=
url
;
}
std
::
string
Segment
::
toString
()
const
std
::
string
Segment
::
toString
(
int
indent
)
const
{
if
(
subsegments
.
empty
())
{
return
ISegment
::
toString
();
return
ISegment
::
toString
(
indent
);
}
else
{
...
...
@@ -186,7 +186,7 @@ std::string Segment::toString() const
std
::
vector
<
SubSegment
*>::
const_iterator
l
;
for
(
l
=
subsegments
.
begin
();
l
!=
subsegments
.
end
();
l
++
)
{
ret
.
append
(
(
*
l
)
->
toString
()
);
ret
.
append
(
(
*
l
)
->
toString
(
indent
+
1
)
);
}
return
ret
;
}
...
...
modules/stream_filter/dash/mpd/Segment.h
View file @
7d42832c
...
...
@@ -60,7 +60,7 @@ namespace dash
virtual
void
setDuration
(
mtime_t
);
virtual
size_t
getOffset
()
const
;
virtual
std
::
vector
<
ISegment
*>
subSegments
()
=
0
;
virtual
std
::
string
toString
()
const
;
virtual
std
::
string
toString
(
int
=
0
)
const
;
virtual
bool
contains
(
size_t
byte
)
const
;
int
getClassId
()
const
;
...
...
@@ -96,7 +96,7 @@ namespace dash
virtual
Url
getUrlSegment
()
const
;
/* impl */
virtual
dash
::
http
::
Chunk
*
toChunk
(
size_t
,
Representation
*
=
NULL
);
virtual
std
::
vector
<
ISegment
*>
subSegments
();
virtual
std
::
string
toString
()
const
;
virtual
std
::
string
toString
(
int
=
0
)
const
;
virtual
void
addSubSegment
(
SubSegment
*
);
static
const
int
CLASSID_SEGMENT
=
1
;
...
...
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