[vlc-devel] [PATCH] dcp: Add case GET_PTS_DELAY in Control()

Nicolas Bertrand nicoinattendu at gmail.com
Fri May 23 11:20:47 CEST 2014


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.
---
 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 caf3f36..4bf1852 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;
-- 
1.7.9.5




More information about the vlc-devel mailing list