[vlc-devel] [PATCH 11/17] dvdnav: handle matching_time

Rémi Denis-Courmont remi at remlab.net
Tue Mar 9 15:27:17 UTC 2021


Le mardi 9 mars 2021, 17:15:40 EET Thomas Guillem a écrit :
> ---
>  modules/access/dvdnav.c | 3 ++-
>  1 file changed, 2 insertions(+), 1 deletion(-)
> 
> diff --git a/modules/access/dvdnav.c b/modules/access/dvdnav.c
> index 29170ae832c..a62c3b0399b 100644
> --- a/modules/access/dvdnav.c
> +++ b/modules/access/dvdnav.c
> @@ -1500,7 +1500,8 @@ static int DemuxBlock( demux_t *p_demux, const uint8_t
> *p, int len ) if( !ps_pkt_parse_pack( p_pkt->p_buffer, p_pkt->i_buffer,
> &i_scr, &i_mux_rate ) )
>              {
> -                es_out_SetPCR( p_sys->p_tf_out, i_scr );
> +                es_out_SetPCRTime( p_sys->p_tf_out, i_scr,
> +                                   dvdnav_get_current_time( p_sys->dvdnav )
> * 100 / 9 ); if( i_mux_rate > 0 ) p_sys->i_mux_rate = i_mux_rate; }
>              block_Release( p_pkt );

That's just duplicating DEMUX_GET_TIME. Same for the next commits.

-- 
Rémi Denis-Courmont




More information about the vlc-devel mailing list