Ticket #5344: fix_5344.diff

File fix_5344.diff, 957 bytes (added by skamithi, 12 years ago)
  • libs/libmythdvdnav/searching.c

     
    478478  if (menu == DVD_MENU_Escape) menu = DVD_MENU_Root;
    479479
    480480  if (vm_jump_menu(try_vm, menu) && !try_vm->stopped) {
    481     vm_get_next_cell(try_vm);
    482     if (!try_vm->pgcN_invalid)
    483     {
    484       vm_free_copy(try_vm);
    485       pthread_mutex_unlock(&this->vm_lock);
    486       return DVDNAV_STATUS_OK;
    487     }
     481    vm_free_copy(try_vm);
     482    pthread_mutex_unlock(&this->vm_lock);
     483    return DVDNAV_STATUS_OK;
    488484  }
    489  
     485
    490486  vm_free_copy(try_vm);
    491487  printerr("No such menu or menu not reachable.");
    492488  pthread_mutex_unlock(&this->vm_lock);
     
    495491
    496492dvdnav_status_t dvdnav_menu_call(dvdnav_t *this, DVDMenuID_t menu) {
    497493  vm_t *try_vm;
    498  
     494
    499495  if(!this) {
    500496    printerr("Passed a NULL pointer.");
    501497    return DVDNAV_STATUS_ERR;