Commit 42403a82 authored by Jean-Baptiste Kempf's avatar Jean-Baptiste Kempf

Correctly return fails in dvdnav_jump_to_sector_by_time

If vm_jump_cell_block failed, we should return fail to
dvdnav_jump_to_sector_by_time() call
parent 30d3de4f
......@@ -1287,12 +1287,12 @@ dvdnav_status_t dvdnav_jump_to_sector_by_time(dvdnav_t *this,
/* jump to sector */
sector_off = jump->sector - cell_data->bgn->sector;
result = vm_jump_cell_block(this->vm, cell_data->idx, sector_off);
this->cur_cell_time = 0;
if (vm_jump_cell_block(this->vm, cell_data->idx, sector_off)) {
if (result) {
pthread_mutex_lock(&this->vm_lock);
this->vm->hop_channel += HOP_SEEK;
pthread_mutex_unlock(&this->vm_lock);
result = DVDNAV_STATUS_OK;
}
exit:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment