# HG changeset patch # User paulo # Date 1387270176 28800 # Node ID 12c17225098e6cd83eddd0fba388dc0d80261b9d # Parent aa7d0e4f300ef8b5d224420b214a2300428acf87 add angle info and start parameter diff -r aa7d0e4f300e -r 12c17225098e menus.c --- a/menus.c Wed May 02 01:08:59 2012 -0700 +++ b/menus.c Tue Dec 17 00:49:36 2013 -0800 @@ -86,7 +86,10 @@ if (argc > 2) start_part = atoi(argv[2]); dvdnav_part_play(dvdnav, start_title, start_part); + if (argc > 3) + dvdnav_angle_change(dvdnav, atoi(argv[3])); } + /* the read loop which regularly calls dvdnav_get_next_block * and handles the returned events */ @@ -185,12 +188,15 @@ * accordingly. */ { int32_t tt = 0, ptt = 0; + int32_t ac = 0, an = 0; uint32_t tpos, tlen; char input = '\0'; dvdnav_current_title_info(dvdnav, &tt, &ptt); dvdnav_get_position(dvdnav, &tpos, &tlen); + dvdnav_get_angle_info(dvdnav, &ac, &an); printf("Cell change: Title %d, Chapter %d\n", tt, ptt); + printf("Angle: %d (Total: %d) \n", ac, an); printf("At position %.0f%% inside the feature (%d / %d) \n", 100 * (double)tpos / (double)tlen, tpos, tlen); dump = 0;