matroska: only error if at least a millisecond is missing

This commit is contained in:
Ben Boeckel 2013-10-14 19:29:42 -04:00
parent abee328f20
commit 78545fee42
1 changed files with 4 additions and 1 deletions

View File

@ -539,7 +539,10 @@ void build_ordered_chapter_timeline(struct MPContext *mpctx)
}; };
MP_TARRAY_APPEND(NULL, timeline, part_count, new); MP_TARRAY_APPEND(NULL, timeline, part_count, new);
if (missing_time) /* Ignore anything less than a millisecond when reporting missing time. If
* users really notice less than a millisecond missing, maybe this can be
* revisited. */
if (missing_time >= 1e6)
mp_msg(MSGT_CPLAYER, MSGL_ERR, "There are %.3f seconds missing " mp_msg(MSGT_CPLAYER, MSGL_ERR, "There are %.3f seconds missing "
"from the timeline!\n", missing_time / 1e9); "from the timeline!\n", missing_time / 1e9);
talloc_free(mpctx->sources); talloc_free(mpctx->sources);