Mercurial > hg > index.fcgi > dvdnav-rip > dvdnav-rip-1pba
comparison 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 |
comparison
equal
deleted
inserted
replaced
3:7b073a037eba | 4:68cf4302a655 |
---|---|
77 if (dvdnav_set_PGC_positioning_flag(dvdnav, 1) != DVDNAV_STATUS_OK) { | 77 if (dvdnav_set_PGC_positioning_flag(dvdnav, 1) != DVDNAV_STATUS_OK) { |
78 printf("Error on dvdnav_set_PGC_positioning_flag: %s\n", dvdnav_err_to_string(dvdnav)); | 78 printf("Error on dvdnav_set_PGC_positioning_flag: %s\n", dvdnav_err_to_string(dvdnav)); |
79 return 2; | 79 return 2; |
80 } | 80 } |
81 | 81 |
82 /* start at title, if specified */ | |
83 if (argc > 1) { | |
84 int start_title = atoi(argv[1]); | |
85 dvdnav_title_play(dvdnav, start_title); | |
86 } | |
82 | 87 |
83 /* the read loop which regularly calls dvdnav_get_next_block | 88 /* the read loop which regularly calls dvdnav_get_next_block |
84 * and handles the returned events */ | 89 * and handles the returned events */ |
85 printf("Reading...\n"); | 90 printf("Reading...\n"); |
86 while (!finished) { | 91 while (!finished) { |