}
}
+/*****************************************************************************
+ * input_ClockResetPCR:
+ *****************************************************************************/
+void input_ClockResetPCR( input_thread_t * p_input, input_clock_t *cl )
+{
+ cl->i_synchro_state = SYNCHRO_REINIT;
+ cl->last_pts = 0;
+}
+
/*****************************************************************************
* input_ClockGetTS: manages a PTS or DTS
*****************************************************************************/
case ES_OUT_RESET_PCR:
for( i = 0; i < p_sys->i_pgrm; i++ )
- {
- p_sys->pgrm[i]->clock.i_synchro_state = SYNCHRO_REINIT;
- p_sys->pgrm[i]->clock.last_pts = 0;
- }
+ input_ClockResetPCR( p_sys->p_input, &p_sys->pgrm[i]->clock );
return VLC_SUCCESS;
case ES_OUT_GET_TS:
void input_ClockInit( input_thread_t *, input_clock_t *, vlc_bool_t b_master, int i_cr_average );
void input_ClockSetPCR( input_thread_t *, input_clock_t *, mtime_t );
+void input_ClockResetPCR( input_thread_t *, input_clock_t * );
mtime_t input_ClockGetTS( input_thread_t *, input_clock_t *, mtime_t );
void input_ClockSetRate( input_thread_t *, input_clock_t *cl );