Commit 35deef06 authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

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

parent 3f33a255
...@@ -2317,12 +2317,6 @@ static int InputSourceInit( input_thread_t *p_input, ...@@ -2317,12 +2317,6 @@ static int InputSourceInit( input_thread_t *p_input,
goto error; 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) */ /* Access-forced demuxer (PARENTAL ADVISORY: EXPLICIT HACK) */
if( !*psz_demux && *p_access->psz_demux ) if( !*psz_demux && *p_access->psz_demux )
psz_demux = p_access->psz_demux; psz_demux = p_access->psz_demux;
...@@ -2411,6 +2405,8 @@ static int InputSourceInit( input_thread_t *p_input, ...@@ -2411,6 +2405,8 @@ static int InputSourceInit( input_thread_t *p_input,
var_SetBool( p_input, "can-seek", b ); var_SetBool( p_input, "can-seek", b );
in->b_title_demux = false; 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, in->p_demux = demux_New( p_input, p_input, psz_access, psz_demux,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment