Commit 600446be authored by Laurent Aimar's avatar Laurent Aimar

Correctly setup the clock state when creating a new program.

It avoid an assert if a program was created after the input was paused.
parent 10028116
......@@ -1030,9 +1030,10 @@ static es_out_pgrm_t *EsOutProgramAdd( es_out_t *out, int i_group )
free( p_pgrm );
return NULL;
}
if( p_sys->b_paused )
input_clock_ChangePause( p_pgrm->p_clock, p_sys->b_paused, p_sys->i_pause_date );
input_clock_SetJitter( p_pgrm->p_clock, p_sys->i_pts_delay, p_sys->i_cr_average );
/* Append it */
TAB_APPEND( p_sys->i_pgrm, p_sys->pgrm, p_pgrm );
......
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