[vlc-devel] [PATCH] input: default value for i_pts_delay in InputSourceInit()

Nicolas Bertrand nicoinattendu at gmail.com
Fri May 23 11:03:31 CEST 2014


Set HEAP i_pts_value to DEFAULT_PTS_DELAY,
avoids random buffering time when a demuxer don't set PTS_DELAY
---
 src/input/input.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/input/input.c b/src/input/input.c
index 7e71d4e..6d89f73 100644
--- a/src/input/input.c
+++ b/src/input/input.c
@@ -2254,7 +2254,7 @@ static int InputSourceInit( input_thread_t *p_input,
         msg_Dbg( p_input, "trying to pre-parse %s",  psz_path );
     }
 
-    mtime_t i_pts_delay;
+    mtime_t i_pts_delay = DEFAULT_PTS_DELAY;
 
     if( in->p_demux )
     {
-- 
1.7.9.5




More information about the vlc-devel mailing list