Commit 91994ef8 authored by Laurent Aimar's avatar Laurent Aimar

Clean up.

parent 662d8a57
......@@ -203,6 +203,15 @@ void input_ClockSetPCR( input_thread_t *p_input,
}
}
/*****************************************************************************
* 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
*****************************************************************************/
......
......@@ -1598,10 +1598,7 @@ static int EsOutControl( es_out_t *out, int i_query, va_list args )
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:
......
......@@ -301,6 +301,7 @@ typedef struct
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 );
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment