[vlc-commits] demux: dash: handle nonzero starting live pcr
Francois Cartegnie
git at videolan.org
Wed Jun 10 18:58:02 CEST 2015
vlc | branch: master | Francois Cartegnie <fcvlcdev at free.fr> | Sun May 24 15:33:17 2015 +0200| [c6d98971bbc64ad2b54521f2bffe34bab81d2960] | committer: Francois Cartegnie
demux: dash: handle nonzero starting live pcr
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=c6d98971bbc64ad2b54521f2bffe34bab81d2960
---
modules/demux/dash/dash.cpp | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/modules/demux/dash/dash.cpp b/modules/demux/dash/dash.cpp
index 7421594..8c84a42 100644
--- a/modules/demux/dash/dash.cpp
+++ b/modules/demux/dash/dash.cpp
@@ -192,7 +192,10 @@ static int Demux(demux_t *p_demux)
case Stream::status_buffering:
break;
case Stream::status_demuxed:
- p_sys->i_nzpcr += DEMUX_INCREMENT;
+ if(p_sys->i_nzpcr == VLC_TS_INVALID)
+ p_sys->i_nzpcr = p_sys->p_dashManager->getPCR();
+ else
+ p_sys->i_nzpcr += DEMUX_INCREMENT;
int group = p_sys->p_dashManager->getGroup();
es_out_Control(p_demux->out, ES_OUT_SET_GROUP_PCR, group, VLC_TS_0 + p_sys->i_nzpcr);
break;
More information about the vlc-commits
mailing list