Commit 2d73a2b3 authored by Jean-Baptiste Kempf's avatar Jean-Baptiste Kempf

Return an error in dvdnav_get_position instead of asserting

LP: #1236939
parent b026ed3d
......@@ -563,7 +563,8 @@ dvdnav_status_t dvdnav_get_position(dvdnav_t *this, uint32_t *pos,
*len += cell->last_sector - cell->first_sector + 1;
}
assert((signed)*pos != -1);
if((signed)*pos == -1)
return DVDNAV_STATUS_ERR;
pthread_mutex_unlock(&this->vm_lock);
......
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