# HG changeset patch # User paulo # Date 1335946139 25200 # Node ID aa7d0e4f300ef8b5d224420b214a2300428acf87 # Parent 3fd49361fcc8ba578f024bd95b159b3d085c44d9 display title position and length in number of blocks diff -r 3fd49361fcc8 -r aa7d0e4f300e menus.c --- a/menus.c Sun Feb 06 23:58:29 2011 -0800 +++ b/menus.c Wed May 02 01:08:59 2012 -0700 @@ -185,13 +185,13 @@ * accordingly. */ { int32_t tt = 0, ptt = 0; - uint32_t pos, len; + uint32_t tpos, tlen; char input = '\0'; dvdnav_current_title_info(dvdnav, &tt, &ptt); - dvdnav_get_position(dvdnav, &pos, &len); + dvdnav_get_position(dvdnav, &tpos, &tlen); printf("Cell change: Title %d, Chapter %d\n", tt, ptt); - printf("At position %.0f%% inside the feature\n", 100 * (double)pos / (double)len); + printf("At position %.0f%% inside the feature (%d / %d) \n", 100 * (double)tpos / (double)tlen, tpos, tlen); dump = 0; if (tt_dump && tt != tt_dump)