diff options
Diffstat (limited to 'src/input/libdvdnav/searching.c')
| -rw-r--r-- | src/input/libdvdnav/searching.c | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/src/input/libdvdnav/searching.c b/src/input/libdvdnav/searching.c index e058485b0..6893d9525 100644 --- a/src/input/libdvdnav/searching.c +++ b/src/input/libdvdnav/searching.c @@ -17,7 +17,7 @@ * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA * - * $Id: searching.c,v 1.15 2003/04/29 15:58:31 jcdutton Exp $ + * $Id: searching.c,v 1.16 2003/04/29 21:55:53 jcdutton Exp $ * */ @@ -410,6 +410,14 @@ dvdnav_status_t dvdnav_get_position(dvdnav_t *this, unsigned int *pos, 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; |
