vlc | branch: master | Rémi Denis-Courmont <[email protected]> | Fri Sep 4 20:30:19 2015 +0300| [5e348a532a8fe7c30c94226fa174f4ab20c3936c] | committer: Rémi Denis-Courmont
vcd: compute current title byte size on demand > http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=5e348a532a8fe7c30c94226fa174f4ab20c3936c --- modules/access/vcd/vcd.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/modules/access/vcd/vcd.c b/modules/access/vcd/vcd.c index 7940c54..d6b5739 100644 --- a/modules/access/vcd/vcd.c +++ b/modules/access/vcd/vcd.c @@ -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: _______________________________________________ vlc-commits mailing list [email protected] https://mailman.videolan.org/listinfo/vlc-commits
