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

Thomas Guillem thomas at gllm.fr
Wed Mar 10 09:39:07 UTC 2021



On Wed, Mar 10, 2021, at 08:38, Rémi Denis-Courmont wrote:
> 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.

Yes but DEMUX_GET_TIME is called from the input_thread_t Mainloop every 200ms.
Here we need to match a pcr to a time, I don't see how we can do it differently. Any proposition is welcome.

> 
> -- 
> Rémi Denis-Courmont
> 
> 
> _______________________________________________
> vlc-devel mailing list
> To unsubscribe or modify your subscription options:
> https://mailman.videolan.org/listinfo/vlc-devel


More information about the vlc-devel mailing list