1
0
Fork 0

Fix mark triggering when multiple marks are passed during single read()

This commit is contained in:
hpi1 2019-04-17 11:07:56 +03:00
parent a1869cb4a1
commit 510df90658
1 changed files with 3 additions and 0 deletions

View File

@ -1579,6 +1579,8 @@ static void _find_next_playmark(BLURAY *bd)
static void _playmark_reached(BLURAY *bd)
{
while (bd->next_mark >= 0 && bd->s_pos > bd->next_mark_pos) {
BD_DEBUG(DBG_BLURAY, "PlayMark %d reached (%"PRIu64")\n", bd->next_mark, bd->next_mark_pos);
_queue_event(bd, BD_EVENT_PLAYMARK, bd->next_mark);
@ -1592,6 +1594,7 @@ static void _playmark_reached(BLURAY *bd)
bd->next_mark = -1;
bd->next_mark_pos = (uint64_t)-1;
}
};
/* chapter tracking */
_update_chapter_psr(bd);