Mercurial > libdvdnav.hg
diff searching.c @ 181:5d9770cb2961 src
fix some conditions where the following assertion would fail
author | mroi |
---|---|
date | Tue, 29 Apr 2003 14:48:53 +0000 |
parents | e9987c07e255 |
children | b80dff4bef76 |
line wrap: on
line diff
--- a/searching.c Tue Apr 29 14:48:19 2003 +0000 +++ b/searching.c Tue Apr 29 14:48:53 2003 +0000 @@ -410,6 +410,14 @@ pthread_mutex_unlock(&this->vm_lock); return S_ERR; } + if (this->position_current.hop_channel != this->vm->hop_channel || + this->position_current.domain != state->domain || + this->position_current.vts != state->vtsN || + this->position_current.cell_restart != state->cell_restart) { + printerr("New position not yet determined."); + pthread_mutex_unlock(&this->vm_lock); + return S_ERR; + } /* Get current sector */ cur_sector = this->vobu.vobu_start + this->vobu.blockN;