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
62578f1b
Commit
62578f1b
authored
May 12, 2015
by
Francois Cartegnie
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
demux: adaptative: fix subsegment debug info
parent
f4a73140
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
16 additions
and
9 deletions
+16
-9
modules/demux/adaptative/playlist/BaseRepresentation.cpp
modules/demux/adaptative/playlist/BaseRepresentation.cpp
+5
-2
modules/demux/adaptative/playlist/Segment.cpp
modules/demux/adaptative/playlist/Segment.cpp
+9
-5
modules/demux/adaptative/playlist/Segment.h
modules/demux/adaptative/playlist/Segment.h
+2
-2
No files found.
modules/demux/adaptative/playlist/BaseRepresentation.cpp
View file @
62578f1b
...
...
@@ -63,8 +63,11 @@ std::vector<std::string> BaseRepresentation::toString(int indent) const
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
(
indent
+
1
));
for
(
l
=
list
.
begin
();
l
<
list
.
end
();
++
l
)
{
std
::
vector
<
std
::
string
>
debug
=
(
*
l
)
->
toString
(
indent
+
1
);
ret
.
insert
(
ret
.
end
(),
debug
.
begin
(),
debug
.
end
());
}
return
ret
;
}
...
...
modules/demux/adaptative/playlist/Segment.cpp
View file @
62578f1b
...
...
@@ -88,13 +88,15 @@ size_t ISegment::getOffset() const
return
startByte
;
}
std
::
string
ISegment
::
toString
(
int
indent
)
const
std
::
vector
<
std
::
string
>
ISegment
::
toString
(
int
indent
)
const
{
std
::
vector
<
std
::
string
>
out
;
std
::
stringstream
ss
;
ss
<<
std
::
string
(
indent
,
' '
)
<<
debugName
<<
" url="
<<
getUrlSegment
().
toString
();
if
(
startByte
!=
endByte
)
ss
<<
" @"
<<
startByte
<<
".."
<<
endByte
;
return
ss
.
str
();
out
.
push_back
(
ss
.
str
());
return
out
;
}
bool
ISegment
::
contains
(
size_t
byte
)
const
...
...
@@ -151,7 +153,7 @@ void Segment::setSourceUrl ( const std::string &url )
this
->
sourceUrl
=
url
;
}
std
::
string
Segment
::
toString
(
int
indent
)
const
std
::
vector
<
std
::
string
>
Segment
::
toString
(
int
indent
)
const
{
if
(
subsegments
.
empty
())
{
...
...
@@ -159,11 +161,13 @@ std::string Segment::toString(int indent) const
}
else
{
std
::
string
ret
;
std
::
vector
<
std
::
string
>
ret
;
std
::
vector
<
SubSegment
*>::
const_iterator
l
;
ret
.
push_back
(
std
::
string
(
indent
,
' '
).
append
(
"Segment"
));
for
(
l
=
subsegments
.
begin
();
l
!=
subsegments
.
end
();
++
l
)
{
ret
.
append
(
(
*
l
)
->
toString
(
indent
+
1
)
);
std
::
vector
<
std
::
string
>
debug
=
(
*
l
)
->
toString
(
indent
+
1
);
ret
.
insert
(
ret
.
end
(),
debug
.
begin
(),
debug
.
end
());
}
return
ret
;
}
...
...
modules/demux/adaptative/playlist/Segment.h
View file @
62578f1b
...
...
@@ -56,7 +56,7 @@ namespace adaptative
virtual
size_t
getOffset
()
const
;
virtual
std
::
vector
<
ISegment
*>
subSegments
()
=
0
;
virtual
void
addSubSegment
(
SubSegment
*
)
=
0
;
virtual
std
::
string
toString
(
int
=
0
)
const
;
virtual
std
::
vector
<
std
::
string
>
toString
(
int
=
0
)
const
;
virtual
bool
contains
(
size_t
byte
)
const
;
int
getClassId
()
const
;
Property
<
mtime_t
>
startTime
;
...
...
@@ -95,7 +95,7 @@ namespace adaptative
virtual
Url
getUrlSegment
()
const
;
/* impl */
virtual
Chunk
*
toChunk
(
size_t
,
BaseRepresentation
*
=
NULL
);
virtual
std
::
vector
<
ISegment
*>
subSegments
();
virtual
std
::
string
toString
(
int
=
0
)
const
;
virtual
std
::
vector
<
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