Skip to content

Commit

Permalink
[xbmc][dvdnav] disallow time search when navigation prohibits
Browse files Browse the repository at this point in the history
  • Loading branch information
Voyager1 committed Feb 14, 2016
1 parent b6e55ae commit af1b101
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/searching.c
Expand Up @@ -121,6 +121,12 @@ dvdnav_status_t dvdnav_time_search(dvdnav_t *this,
return DVDNAV_STATUS_ERR;
}

if ((state->pgc->prohibited_ops.title_or_time_play == 1) ||
(this->pci.pci_gi.vobu_uop_ctl.title_or_time_play == 1)){
printerr("operation forbidden.");
pthread_mutex_unlock(&this->vm_lock);
return DVDNAV_STATUS_ERR;
}

this->cur_cell_time = 0;
if (this->pgc_based) {
Expand Down

0 comments on commit af1b101

Please sign in to comment.