*****************************************************************************/
/* Maximum gap allowed between two CRs. */
-#define CR_MAX_GAP (INT64_C(2000000)*100/9)
+#define CR_MAX_GAP (60 * CLOCK_FREQ)
/* Latency introduced on DVDs with CR == 0 on chapter change - this is from
* my dice --Meuuh */
*pi_ts0 += i_ts_delay;
}
- /* XXX we do not ipdate i_ts_max on purpose */
+ /* XXX we do not update i_ts_max on purpose */
if( pi_ts1 && *pi_ts1 > VLC_TS_INVALID )
{
*pi_ts1 = ClockStreamToSystem( cl, *pi_ts1 + AvgGet( &cl->drift ) ) +
vlc_mutex_unlock( &cl->lock );
/* Check ts validity */
- if( i_ts_bound != INT64_MAX &&
- *pi_ts0 > VLC_TS_INVALID && *pi_ts0 >= mdate() + i_ts_delay + i_ts_buffering + i_ts_bound )
- return VLC_EGENERIC;
+ if (i_ts_bound != INT64_MAX && *pi_ts0 > VLC_TS_INVALID) {
+ if (*pi_ts0 >= mdate() + i_ts_delay + i_ts_buffering + i_ts_bound) {
+ vlc_Log(NULL, VLC_MSG_ERR, "clock",
+ "Timestamp conversion failed (delay %"PRId64", buffering "
+ "%"PRId64", bound %"PRId64")",
+ i_ts_delay, i_ts_buffering, i_ts_bound);
+ return VLC_EGENERIC;
+ }
+ }
return VLC_SUCCESS;
}