diff options
author | Ben Boeckel <mathstuf@gmail.com> | 2013-10-14 19:29:42 -0400 |
---|---|---|
committer | Ben Boeckel <mathstuf@gmail.com> | 2013-10-15 20:53:10 -0400 |
commit | 78545fee421f4e194d988b93d970e61f57841c61 (patch) | |
tree | 4f9dc55fa14ed14591856e4890762c0ec7c4a052 | |
parent | abee328f20c89472e00fa877a0859ecfe572ed8f (diff) | |
download | mpv-78545fee421f4e194d988b93d970e61f57841c61.tar.bz2 mpv-78545fee421f4e194d988b93d970e61f57841c61.tar.xz |
matroska: only error if at least a millisecond is missing
-rw-r--r-- | mpvcore/timeline/tl_matroska.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/mpvcore/timeline/tl_matroska.c b/mpvcore/timeline/tl_matroska.c index 9505fe06a4..11d73f314e 100644 --- a/mpvcore/timeline/tl_matroska.c +++ b/mpvcore/timeline/tl_matroska.c @@ -539,7 +539,10 @@ void build_ordered_chapter_timeline(struct MPContext *mpctx) }; 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 " "from the timeline!\n", missing_time / 1e9); talloc_free(mpctx->sources); |