[vlc-devel] [PATCH v2 3/7] es_out_timeshift: handle ES_OUT_SET_NPT
Thomas Guillem
thomas at gllm.fr
Thu Apr 1 15:30:08 UTC 2021
---
src/input/es_out_timeshift.c | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/src/input/es_out_timeshift.c b/src/input/es_out_timeshift.c
index 3239e8e9c2e..1b34b7ecb6a 100644
--- a/src/input/es_out_timeshift.c
+++ b/src/input/es_out_timeshift.c
@@ -657,6 +657,8 @@ static int ControlLocked( es_out_t *p_out, input_source_t *in, int i_query,
case ES_OUT_SET_PCR:
case ES_OUT_SET_GROUP_PCR:
case ES_OUT_RESET_PCR:
+ case ES_OUT_SET_NPT:
+ case ES_OUT_SET_GROUP_NPT:
case ES_OUT_SET_NEXT_DISPLAY_TIME:
case ES_OUT_SET_GROUP_META:
case ES_OUT_SET_GROUP_EPG:
@@ -1528,10 +1530,12 @@ static int CmdInitControl( ts_cmd_control_t *p_cmd, input_source_t *in,
case ES_OUT_SET_PCR: /* arg1=vlc_tick_t i_pcr(microsecond!) (using default group 0)*/
case ES_OUT_SET_NEXT_DISPLAY_TIME: /* arg1=int64_t i_pts(microsecond) */
+ case ES_OUT_SET_NPT:
p_cmd->u.i_i64 = va_arg( args, int64_t );
break;
case ES_OUT_SET_GROUP_PCR: /* arg1= int i_group, arg2=vlc_tick_t i_pcr(microsecond!)*/
+ case ES_OUT_SET_GROUP_NPT:
p_cmd->u.int_i64.i_int = va_arg( args, int );
p_cmd->u.int_i64.i_i64 = va_arg( args, vlc_tick_t );
break;
@@ -1663,10 +1667,12 @@ static int CmdExecuteControl( es_out_t *p_tsout, ts_cmd_control_t *p_cmd )
return es_out_in_Control( p_sys->p_out, in, i_query, p_cmd->u.i_int );
case ES_OUT_SET_PCR: /* arg1=vlc_tick_t i_pcr(microsecond!) (using default group 0)*/
+ case ES_OUT_SET_NPT:
case ES_OUT_SET_NEXT_DISPLAY_TIME: /* arg1=int64_t i_pts(microsecond) */
return es_out_in_Control( p_sys->p_out, in, i_query, p_cmd->u.i_i64 );
case ES_OUT_SET_GROUP_PCR: /* arg1= int i_group, arg2=vlc_tick_t i_pcr(microsecond!)*/
+ case ES_OUT_SET_GROUP_NPT:
return es_out_in_Control( p_sys->p_out, in, i_query, p_cmd->u.int_i64.i_int,
p_cmd->u.int_i64.i_i64 );
--
2.30.0
More information about the vlc-devel
mailing list