Mercurial > hg > index.fcgi > dvdnav-rip > dvdnav-rip-1pba
changeset 7:aa7d0e4f300e
display title position and length in number of blocks
author | paulo |
---|---|
date | Wed, 02 May 2012 01:08:59 -0700 |
parents | 3fd49361fcc8 |
children | 12c17225098e |
files | menus.c |
diffstat | 1 files changed, 3 insertions(+), 3 deletions(-) [+] |
line diff
1.1 --- a/menus.c Sun Feb 06 23:58:29 2011 -0800 1.2 +++ b/menus.c Wed May 02 01:08:59 2012 -0700 1.3 @@ -185,13 +185,13 @@ 1.4 * accordingly. */ 1.5 { 1.6 int32_t tt = 0, ptt = 0; 1.7 - uint32_t pos, len; 1.8 + uint32_t tpos, tlen; 1.9 char input = '\0'; 1.10 1.11 dvdnav_current_title_info(dvdnav, &tt, &ptt); 1.12 - dvdnav_get_position(dvdnav, &pos, &len); 1.13 + dvdnav_get_position(dvdnav, &tpos, &tlen); 1.14 printf("Cell change: Title %d, Chapter %d\n", tt, ptt); 1.15 - printf("At position %.0f%% inside the feature\n", 100 * (double)pos / (double)len); 1.16 + printf("At position %.0f%% inside the feature (%d / %d) \n", 100 * (double)tpos / (double)tlen, tpos, tlen); 1.17 1.18 dump = 0; 1.19 if (tt_dump && tt != tt_dump)