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
9240ed51
Commit
9240ed51
authored
Oct 05, 2015
by
Francois Cartegnie
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
demux: hls: parse segment discontinuity
parent
52a47237
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
0 deletions
+11
-0
modules/demux/hls/playlist/Parser.cpp
modules/demux/hls/playlist/Parser.cpp
+11
-0
No files found.
modules/demux/hls/playlist/Parser.cpp
View file @
9240ed51
...
@@ -179,6 +179,7 @@ void M3U8Parser::parseSegments(vlc_object_t *p_obj, Representation *rep, const s
...
@@ -179,6 +179,7 @@ void M3U8Parser::parseSegments(vlc_object_t *p_obj, Representation *rep, const s
stime_t
totalduration
=
0
;
stime_t
totalduration
=
0
;
stime_t
nzStartTime
=
0
;
stime_t
nzStartTime
=
0
;
uint64_t
sequenceNumber
=
0
;
uint64_t
sequenceNumber
=
0
;
bool
discontinuity
=
false
;
std
::
size_t
prevbyterangeoffset
=
0
;
std
::
size_t
prevbyterangeoffset
=
0
;
const
SingleValueTag
*
ctx_byterange
=
NULL
;
const
SingleValueTag
*
ctx_byterange
=
NULL
;
SegmentEncryption
encryption
;
SegmentEncryption
encryption
;
...
@@ -243,6 +244,12 @@ void M3U8Parser::parseSegments(vlc_object_t *p_obj, Representation *rep, const s
...
@@ -243,6 +244,12 @@ void M3U8Parser::parseSegments(vlc_object_t *p_obj, Representation *rep, const s
ctx_byterange
=
NULL
;
ctx_byterange
=
NULL
;
}
}
if
(
discontinuity
)
{
segment
->
discontinuity
=
true
;
discontinuity
=
false
;
}
if
(
encryption
.
method
!=
SegmentEncryption
::
NONE
)
if
(
encryption
.
method
!=
SegmentEncryption
::
NONE
)
segment
->
setEncryption
(
encryption
);
segment
->
setEncryption
(
encryption
);
}
}
...
@@ -300,6 +307,10 @@ void M3U8Parser::parseSegments(vlc_object_t *p_obj, Representation *rep, const s
...
@@ -300,6 +307,10 @@ void M3U8Parser::parseSegments(vlc_object_t *p_obj, Representation *rep, const s
}
}
break
;
break
;
case
Tag
:
:
EXTXDISCONTINUITY
:
discontinuity
=
true
;
break
;
case
Tag
:
:
EXTXENDLIST
:
case
Tag
:
:
EXTXENDLIST
:
rep
->
b_live
=
false
;
rep
->
b_live
=
false
;
break
;
break
;
...
...
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