]> git.sesse.net Git - vlc/blobdiff - src/input/input.c
input: get PTS delay from stream rather than access (fixes #8457)
[vlc] / src / input / input.c
index 1acf97643cb61ae28df53e8b4be140504c3570b8..e39c1a490983e64cb43af49fc623179e551e0c25 100644 (file)
@@ -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,