Commit bcae3b19 authored by Dennis van Amerongen's avatar Dennis van Amerongen

* src/input/clock.c: Feed synchro with new ref. point after unexpected...

* src/input/clock.c: Feed synchro with new ref. point after unexpected discontinuity. Needs testing, should fix ticket #691 no audio/video in transcode after clock gap in input
parent 5c2aa699
......@@ -166,6 +166,11 @@ void input_ClockSetPCR( input_thread_t *p_input,
* stream ?). */
msg_Warn( p_input, "clock gap, unexpected stream discontinuity" );
input_ClockInit( p_input, cl, cl->b_master, cl->i_cr_average );
/* Feed synchro with a new reference point. */
msg_Warn( p_input, "feeding synchro with a new reference point trying to recover from clock gap" );
ClockNewRef( cl, i_clock,
__MAX( cl->last_pts + CR_MEAN_PTS_GAP, i_mdate ) );
cl->i_synchro_state = SYNCHRO_OK;
}
cl->last_cr = i_clock;
......
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