From 35deef0686f084e477d10cbb15d49cad50a159c1 Mon Sep 17 00:00:00 2001 From: =?utf8?q?R=C3=A9mi=20Denis-Courmont?= Date: Sun, 10 Nov 2013 18:06:38 +0200 Subject: [PATCH] input: get PTS delay from stream rather than access (fixes #8457) --- 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 1acf97643c..e39c1a4909 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, -- 2.39.2