[vlc-devel] [PATCH 03/17] demux: ty: use the es_out_SetPCR() helper

Thomas Guillem thomas at gllm.fr
Tue Mar 9 15:15:32 UTC 2021


---
 modules/demux/ty.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/modules/demux/ty.c b/modules/demux/ty.c
index 7ea97f6eb29..dd196111254 100644
--- a/modules/demux/ty.c
+++ b/modules/demux/ty.c
@@ -995,8 +995,8 @@ static int DemuxRecAudio( demux_t *p_demux, ty_rec_hdr_t *rec_hdr, block_t *p_bl
 
     /* set PCR before we send (if PTS found) */
     if( p_block_in->i_pts != VLC_TICK_INVALID )
-        es_out_Control( p_demux->out, ES_OUT_SET_PCR,
-                        p_block_in->i_pts );
+        es_out_SetPCR( p_demux->out, p_block_in->i_pts );
+
     /* Send data */
     es_out_Send( p_demux->out, p_sys->p_audio, p_block_in );
     return 0;
-- 
2.30.0



More information about the vlc-devel mailing list