[vlc-devel] [PATCH 14/17] cdda: handle matching_time

Steve Lhomme robux4 at ycbcr.xyz
Wed Mar 10 07:20:45 UTC 2021


On 2021-03-09 16:15, Thomas Guillem wrote:
> ---
>   modules/access/cdda.c | 3 ++-
>   1 file changed, 2 insertions(+), 1 deletion(-)
> 
> diff --git a/modules/access/cdda.c b/modules/access/cdda.c
> index 9260b833eda..e367a5a1a4d 100644
> --- a/modules/access/cdda.c
> +++ b/modules/access/cdda.c
> @@ -174,7 +174,8 @@ static int Demux(demux_t *demux)
>       date_Increment(&sys->pts, block->i_nb_samples);
>   
>       es_out_Send(demux->out, sys->es, block);
> -    es_out_SetPCR(demux->out, date_Get(&sys->pts));
> +    es_out_SetPCRTime(demux->out, date_Get(&sys->pts),
> +                      (INT64_C(40000) * sys->position) / 3);

This hardcoded value is also ugly but since that's the case in the rest 
of the file that will do for now.

>       return VLC_DEMUXER_SUCCESS;
>   }
>   
> -- 
> 2.30.0
> 
> _______________________________________________
> 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