From 602d02a062d30ced5bce602e90c254036708fb1f Mon Sep 17 00:00:00 2001 From: Nicolas Bertrand Date: Fri, 23 May 2014 11:20:47 +0200 Subject: [PATCH] dcp: Add case GET_PTS_DELAY in Control() Use the option --file-caching to set PTS_DELAY Default caching value is 30s, okay for DCPs with 100Mb/s bitrate For higher bitrates and high resolution values, file-caching shall be reduced. Avoid fifo full problem in decoder. Signed-off-by: Jean-Baptiste Kempf --- modules/access/dcp/dcp.cpp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/modules/access/dcp/dcp.cpp b/modules/access/dcp/dcp.cpp index caf3f36d49..4bf18521ae 100644 --- a/modules/access/dcp/dcp.cpp +++ b/modules/access/dcp/dcp.cpp @@ -827,6 +827,13 @@ static int Control( demux_t *p_demux, int query, va_list args ) es_out_Control( p_demux->out, ES_OUT_SET_PCR, p_sys->i_pts); es_out_Control( p_demux->out, ES_OUT_SET_NEXT_DISPLAY_TIME, ( mtime_t ) i64 ); break; + case DEMUX_GET_PTS_DELAY: + pi64 = (int64_t*)va_arg( args, int64_t * ); + *pi64 = + INT64_C(1000) * var_InheritInteger( p_demux, "file-caching" ); + return VLC_SUCCESS; + + default: msg_Warn( p_demux, "Unknown query %d in DCP Control", query ); return VLC_EGENERIC;