Commit 5e348a53 authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

vcd: compute current title byte size on demand

parent 3db95ed0
......@@ -244,9 +244,14 @@ static int Control( access_t *p_access, int i_query, va_list args )
break;
case ACCESS_GET_SIZE:
{
int i = p_sys->i_current_title;
*va_arg( args, uint64_t * ) =
p_sys->title[p_sys->i_current_title]->i_size;
(p_sys->p_sectors[i + 2] - p_sys->p_sectors[i + 1])
* (uint64_t)VCD_DATA_SIZE;
break;
}
/* */
case ACCESS_GET_PTS_DELAY:
......
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