Skip to content

Commit

Permalink
input: get PTS delay from stream rather than access (fixes #8457)
Browse files Browse the repository at this point in the history
  • Loading branch information
Rémi Denis-Courmont committed Nov 10, 2013
1 parent 3f33a25 commit 35deef0
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions src/input/input.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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,
Expand Down

0 comments on commit 35deef0

Please sign in to comment.