diff searching.c @ 269:77e472cef5f8 src

implemented dvdnav_get_current_time() with obvious meaning
author nicodvb
date Sun, 08 Apr 2007 17:45:19 +0000
parents 99d33725395d
children 5d091ebc4c3b
line wrap: on
line diff
--- a/searching.c	Sun Apr 08 17:41:12 2007 +0000
+++ b/searching.c	Sun Apr 08 17:45:19 2007 +0000
@@ -122,6 +122,7 @@
   }
 
   
+  this->cur_cell_time = 0;  
   if (this->pgc_based) {
     first_cell_nr = 1;
     last_cell_nr = state->pgc->nr_of_cells;
@@ -242,6 +243,7 @@
     return DVDNAV_STATUS_ERR;
   }
   
+  this->cur_cell_time = 0;
   if (this->pgc_based) {
     first_cell_nr = 1;
     last_cell_nr = state->pgc->nr_of_cells;
@@ -328,6 +330,7 @@
     pthread_mutex_unlock(&this->vm_lock);
     return DVDNAV_STATUS_ERR;
   }
+  this->cur_cell_time = 0;
   this->position_current.still = 0;
   this->vm->hop_channel++;
 #ifdef LOG_DEBUG
@@ -361,6 +364,7 @@
     pthread_mutex_unlock(&this->vm_lock);
     return DVDNAV_STATUS_ERR;
   }
+  this->cur_cell_time = 0;
   this->position_current.still = 0;
   this->vm->hop_channel++;
 #ifdef LOG_DEBUG
@@ -404,6 +408,7 @@
       return DVDNAV_STATUS_ERR;
     }
   }
+  this->cur_cell_time = 0;
   /* merge changes on success */
   vm_merge(this->vm, try_vm);
   vm_free_copy(try_vm);
@@ -432,6 +437,7 @@
     return DVDNAV_STATUS_ERR;
   }
   
+  this->cur_cell_time = 0;
   /* make a copy of current VM and try to navigate the copy to the menu */
   try_vm = vm_new_copy(this->vm);
   if ( (menu == DVD_MENU_Escape) && (this->vm->state.domain != VTS_DOMAIN)) {