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
23d44ceb
Commit
23d44ceb
authored
Jul 22, 2015
by
Francois Cartegnie
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
demux: adaptative: handle end of period
parent
cccdd7e3
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
18 additions
and
1 deletion
+18
-1
modules/demux/adaptative/PlaylistManager.cpp
modules/demux/adaptative/PlaylistManager.cpp
+8
-0
modules/demux/adaptative/Streams.hpp
modules/demux/adaptative/Streams.hpp
+1
-1
modules/demux/dash/dash.cpp
modules/demux/dash/dash.cpp
+5
-0
modules/demux/hls/hls.cpp
modules/demux/hls/hls.cpp
+4
-0
No files found.
modules/demux/adaptative/PlaylistManager.cpp
View file @
23d44ceb
...
@@ -157,6 +157,14 @@ Stream::status PlaylistManager::demux(mtime_t nzdeadline, bool send)
...
@@ -157,6 +157,14 @@ Stream::status PlaylistManager::demux(mtime_t nzdeadline, bool send)
}
}
}
}
/* might be end of current period */
if
(
i_return
==
Stream
::
status_eof
&&
currentPeriod
)
{
unsetPeriod
();
currentPeriod
=
playlist
->
getNextPeriod
(
currentPeriod
);
i_return
=
(
setupPeriod
())
?
Stream
::
status_eop
:
Stream
::
status_eof
;
}
return
i_return
;
return
i_return
;
}
}
...
...
modules/demux/adaptative/Streams.hpp
View file @
23d44ceb
...
@@ -77,7 +77,7 @@ namespace adaptative
...
@@ -77,7 +77,7 @@ namespace adaptative
bool
isSelected
()
const
;
bool
isSelected
()
const
;
bool
reactivate
(
mtime_t
);
bool
reactivate
(
mtime_t
);
bool
isDisabled
()
const
;
bool
isDisabled
()
const
;
typedef
enum
{
status_eof
,
status_buffering
,
status_demuxed
}
status
;
typedef
enum
{
status_eof
,
status_
eop
,
status_
buffering
,
status_demuxed
}
status
;
status
demux
(
HTTPConnectionManager
*
,
mtime_t
,
bool
);
status
demux
(
HTTPConnectionManager
*
,
mtime_t
,
bool
);
bool
setPosition
(
mtime_t
,
bool
);
bool
setPosition
(
mtime_t
,
bool
);
mtime_t
getPosition
()
const
;
mtime_t
getPosition
()
const
;
...
...
modules/demux/dash/dash.cpp
View file @
23d44ceb
...
@@ -197,12 +197,17 @@ static int Demux(demux_t *p_demux)
...
@@ -197,12 +197,17 @@ static int Demux(demux_t *p_demux)
Stream
::
status
status
=
Stream
::
status
status
=
p_sys
->
p_dashManager
->
demux
(
p_sys
->
i_nzpcr
+
DEMUX_INCREMENT
,
true
);
p_sys
->
p_dashManager
->
demux
(
p_sys
->
i_nzpcr
+
DEMUX_INCREMENT
,
true
);
switch
(
status
)
switch
(
status
)
{
{
case
Stream
:
:
status_eof
:
case
Stream
:
:
status_eof
:
return
VLC_DEMUXER_EOF
;
return
VLC_DEMUXER_EOF
;
case
Stream
:
:
status_buffering
:
case
Stream
:
:
status_buffering
:
break
;
break
;
case
Stream
:
:
status_eop
:
p_sys
->
i_nzpcr
=
VLC_TS_INVALID
;
es_out_Control
(
p_demux
->
out
,
ES_OUT_RESET_PCR
);
break
;
case
Stream
:
:
status_demuxed
:
case
Stream
:
:
status_demuxed
:
if
(
p_sys
->
i_nzpcr
!=
VLC_TS_INVALID
)
if
(
p_sys
->
i_nzpcr
!=
VLC_TS_INVALID
)
{
{
...
...
modules/demux/hls/hls.cpp
View file @
23d44ceb
...
@@ -241,6 +241,10 @@ static int Demux(demux_t *p_demux)
...
@@ -241,6 +241,10 @@ static int Demux(demux_t *p_demux)
return
VLC_DEMUXER_EOF
;
return
VLC_DEMUXER_EOF
;
case
Stream
:
:
status_buffering
:
case
Stream
:
:
status_buffering
:
break
;
break
;
case
Stream
:
:
status_eop
:
p_sys
->
i_nzpcr
=
VLC_TS_INVALID
;
es_out_Control
(
p_demux
->
out
,
ES_OUT_RESET_PCR
);
break
;
case
Stream
:
:
status_demuxed
:
case
Stream
:
:
status_demuxed
:
if
(
p_sys
->
i_nzpcr
!=
VLC_TS_INVALID
)
if
(
p_sys
->
i_nzpcr
!=
VLC_TS_INVALID
)
{
{
...
...
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