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
070ce589
Commit
070ce589
authored
Dec 11, 2014
by
Francois Cartegnie
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
stream_filter: dash: add segment duration
parent
6c8bc5c2
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
1 deletion
+15
-1
modules/stream_filter/dash/mpd/Segment.cpp
modules/stream_filter/dash/mpd/Segment.cpp
+12
-1
modules/stream_filter/dash/mpd/Segment.h
modules/stream_filter/dash/mpd/Segment.h
+3
-0
No files found.
modules/stream_filter/dash/mpd/Segment.cpp
View file @
070ce589
...
...
@@ -41,7 +41,8 @@ ISegment::ISegment(const ICanonicalUrl *parent):
ICanonicalUrl
(
parent
),
startByte
(
0
),
endByte
(
0
),
startTime
(
VLC_TS_INVALID
)
startTime
(
VLC_TS_INVALID
),
duration
(
0
)
{
debugName
=
"Segment"
;
classId
=
CLASSID_ISEGMENT
;
...
...
@@ -100,6 +101,16 @@ mtime_t ISegment::getStartTime() const
return
startTime
;
}
mtime_t
ISegment
::
getDuration
()
const
{
return
duration
;
}
void
ISegment
::
setDuration
(
mtime_t
d
)
{
duration
=
d
;
}
size_t
ISegment
::
getOffset
()
const
{
return
startByte
;
...
...
modules/stream_filter/dash/mpd/Segment.h
View file @
070ce589
...
...
@@ -55,6 +55,8 @@ namespace dash
virtual
void
setByteRange
(
size_t
start
,
size_t
end
);
virtual
void
setStartTime
(
mtime_t
ztime
);
virtual
mtime_t
getStartTime
()
const
;
virtual
mtime_t
getDuration
()
const
;
virtual
void
setDuration
(
mtime_t
);
virtual
size_t
getOffset
()
const
;
virtual
std
::
vector
<
ISegment
*>
subSegments
()
=
0
;
virtual
std
::
string
toString
()
const
;
...
...
@@ -70,6 +72,7 @@ namespace dash
mtime_t
startTime
;
std
::
string
debugName
;
int
classId
;
mtime_t
duration
;
class
SegmentChunk
:
public
dash
::
http
::
Chunk
{
...
...
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