[vlc-commits] dcp: Add case GET_PTS_DELAY in Control()
Nicolas Bertrand
git at videolan.org
Fri May 23 11:30:52 CEST 2014
vlc | branch: master | Nicolas Bertrand <nicoinattendu at gmail.com> | Fri May 23 11:20:47 2014 +0200| [602d02a062d30ced5bce602e90c254036708fb1f] | committer: 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: Jean-Baptiste Kempf <jb at videolan.org>
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=602d02a062d30ced5bce602e90c254036708fb1f
---
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;
More information about the vlc-commits
mailing list