[vlc-commits] input: get PTS delay from stream rather than access (fixes #8457)

Rémi Denis-Courmont git at videolan.org
Sun Nov 10 17:08:46 CET 2013


vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Sun Nov 10 18:06:38 2013 +0200| [35deef0686f084e477d10cbb15d49cad50a159c1] | committer: Rémi Denis-Courmont

input: get PTS delay from stream rather than access (fixes #8457)

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=35deef0686f084e477d10cbb15d49cad50a159c1
---

 src/input/input.c |    8 ++------
 1 file changed, 2 insertions(+), 6 deletions(-)

diff --git a/src/input/input.c b/src/input/input.c
index 1acf976..e39c1a4 100644
--- a/src/input/input.c
+++ b/src/input/input.c
@@ -2317,12 +2317,6 @@ static int InputSourceInit( input_thread_t *p_input,
             goto error;
         }
 
-        /* Get infos from access */
-        if( !p_input->b_preparsing )
-        {
-            access_Control( p_access, ACCESS_GET_PTS_DELAY, &i_pts_delay );
-        }
-
         /* Access-forced demuxer (PARENTAL ADVISORY: EXPLICIT HACK) */
         if( !*psz_demux && *p_access->psz_demux )
             psz_demux = p_access->psz_demux;
@@ -2411,6 +2405,8 @@ static int InputSourceInit( input_thread_t *p_input,
             var_SetBool( p_input, "can-seek", b );
 
             in->b_title_demux = false;
+
+            stream_Control( p_stream, STREAM_GET_PTS_DELAY, &i_pts_delay );
         }
 
         in->p_demux = demux_New( p_input, p_input, psz_access, psz_demux,



More information about the vlc-commits mailing list