Mercurial > hg > index.fcgi > dvdnav-rip > dvdnav-rip-1pba
changeset 6:3fd49361fcc8
add start part parameter
author | paulo@twcdns.fastsearch.net |
---|---|
date | Sun, 06 Feb 2011 23:58:29 -0800 |
parents | ec2f201219ff |
children | aa7d0e4f300e |
files | menus.c |
diffstat | 1 files changed, 5 insertions(+), 2 deletions(-) [+] |
line diff
1.1 --- a/menus.c Mon Sep 27 23:13:24 2010 -0700 1.2 +++ b/menus.c Sun Feb 06 23:58:29 2011 -0800 1.3 @@ -79,10 +79,13 @@ 1.4 return 2; 1.5 } 1.6 1.7 - /* start at title, if specified */ 1.8 + /* start at title and part, if specified */ 1.9 if (argc > 1) { 1.10 int start_title = atoi(argv[1]); 1.11 - dvdnav_title_play(dvdnav, start_title); 1.12 + int start_part = 1; 1.13 + if (argc > 2) 1.14 + start_part = atoi(argv[2]); 1.15 + dvdnav_part_play(dvdnav, start_title, start_part); 1.16 } 1.17 1.18 /* the read loop which regularly calls dvdnav_get_next_block