Commit 0b49ff4a 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.
(cherry picked from commit 600446be)
parent 2c064f0d
...@@ -1029,9 +1029,10 @@ static es_out_pgrm_t *EsOutProgramAdd( es_out_t *out, int i_group ) ...@@ -1029,9 +1029,10 @@ static es_out_pgrm_t *EsOutProgramAdd( es_out_t *out, int i_group )
free( p_pgrm ); free( p_pgrm );
return NULL; 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 ); input_clock_SetJitter( p_pgrm->p_clock, p_sys->i_pts_delay, p_sys->i_cr_average );
/* Append it */ /* Append it */
TAB_APPEND( p_sys->i_pgrm, p_sys->pgrm, p_pgrm ); 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