diff menus.c @ 5:ec2f201219ff

add start title parameter
author paulo@twcdns.fastsearch.net
date Mon, 27 Sep 2010 23:13:24 -0700
parents ffbf478b80c2
children 3fd49361fcc8
line diff
     1.1 --- a/menus.c	Fri Nov 13 01:01:20 2009 -0800
     1.2 +++ b/menus.c	Mon Sep 27 23:13:24 2010 -0700
     1.3 @@ -79,6 +79,11 @@
     1.4  		return 2;
     1.5  	}
     1.6  	
     1.7 +	/* start at title, if specified */
     1.8 +	if (argc > 1) {
     1.9 +		int start_title = atoi(argv[1]);
    1.10 +		dvdnav_title_play(dvdnav, start_title);
    1.11 +	}
    1.12  	
    1.13  	/* the read loop which regularly calls dvdnav_get_next_block
    1.14  	 * and handles the returned events */