comparison 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
comparison
equal deleted inserted replaced
180:0828d362270f 181:5d9770cb2961
408 if(!state->pgc) { 408 if(!state->pgc) {
409 printerr("No current PGC."); 409 printerr("No current PGC.");
410 pthread_mutex_unlock(&this->vm_lock); 410 pthread_mutex_unlock(&this->vm_lock);
411 return S_ERR; 411 return S_ERR;
412 } 412 }
413 if (this->position_current.hop_channel != this->vm->hop_channel ||
414 this->position_current.domain != state->domain ||
415 this->position_current.vts != state->vtsN ||
416 this->position_current.cell_restart != state->cell_restart) {
417 printerr("New position not yet determined.");
418 pthread_mutex_unlock(&this->vm_lock);
419 return S_ERR;
420 }
413 421
414 /* Get current sector */ 422 /* Get current sector */
415 cur_sector = this->vobu.vobu_start + this->vobu.blockN; 423 cur_sector = this->vobu.vobu_start + this->vobu.blockN;
416 424
417 if (this->pgc_based) { 425 if (this->pgc_based) {