Commit 602d02a0 authored by Nicolas Bertrand's avatar Nicolas Bertrand Committed by Jean-Baptiste Kempf

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: default avatarJean-Baptiste Kempf <jb@videolan.org>
parent de0f5ec7
...@@ -827,6 +827,13 @@ static int Control( demux_t *p_demux, int query, va_list args ) ...@@ -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_PCR, p_sys->i_pts);
es_out_Control( p_demux->out, ES_OUT_SET_NEXT_DISPLAY_TIME, ( mtime_t ) i64 ); es_out_Control( p_demux->out, ES_OUT_SET_NEXT_DISPLAY_TIME, ( mtime_t ) i64 );
break; 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: default:
msg_Warn( p_demux, "Unknown query %d in DCP Control", query ); msg_Warn( p_demux, "Unknown query %d in DCP Control", query );
return VLC_EGENERIC; return VLC_EGENERIC;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment