1
mirror of https://code.videolan.org/videolan/vlc synced 2024-09-28 23:09:59 +02:00

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 <jb@videolan.org>
This commit is contained in:
Nicolas Bertrand 2014-05-23 11:20:47 +02:00 committed by Jean-Baptiste Kempf
parent de0f5ec716
commit 602d02a062

View File

@ -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;