# HG changeset patch # User paulo@thepaulopc # Date 1258100519 28800 # Node ID ffbf478b80c284b6fce36fc38a5513e872646eee # Parent 399518436fcfc3c36cce20efa12c6bd06ed3a5e6 add Makefile; put missing braces back (that were removed in r399518436fcf) diff -r 399518436fcf -r ffbf478b80c2 Makefile --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/Makefile Fri Nov 13 00:21:59 2009 -0800 @@ -0,0 +1,9 @@ +GCC=gcc +CFLAGS=-I/usr/include/ -I/usr/include/dvdread -I/usr/include/dvdnav +LDFLAGS=-L/usr/lib -ldvdnav + +dvdnav-rip: menus.o + $(GCC) -o $@ $(LDFLAGS) $^ + +menus.o: menus.c + $(GCC) -c $(CFLAGS) $^ diff -r 399518436fcf -r ffbf478b80c2 menus.c --- a/menus.c Fri Nov 13 00:02:37 2009 -0800 +++ b/menus.c Fri Nov 13 00:21:59 2009 -0800 @@ -127,12 +127,14 @@ * user input to make menus and other interactive stills work. * A length of 0xff means an indefinite still which has to be skipped * indirectly by some user interaction. */ - dvdnav_still_event_t *still_event = (dvdnav_still_event_t *)buf; - if (still_event->length < 0xff) - printf("Skipping %d seconds of still frame\n", still_event->length); - else - printf("Skipping indefinite length still frame\n"); - dvdnav_still_skip(dvdnav); + { + dvdnav_still_event_t *still_event = (dvdnav_still_event_t *)buf; + if (still_event->length < 0xff) + printf("Skipping %d seconds of still frame\n", still_event->length); + else + printf("Skipping indefinite length still frame\n"); + dvdnav_still_skip(dvdnav); + } break; case DVDNAV_WAIT: /* We have reached a point in DVD playback, where timing is critical. @@ -157,8 +159,10 @@ case DVDNAV_HIGHLIGHT: /* Player applications should inform their overlay engine to highlight the * given button */ - dvdnav_highlight_event_t *highlight_event = (dvdnav_highlight_event_t *)buf; - printf("Selected button %d\n", highlight_event->buttonN); + { + dvdnav_highlight_event_t *highlight_event = (dvdnav_highlight_event_t *)buf; + printf("Selected button %d\n", highlight_event->buttonN); + } break; case DVDNAV_VTS_CHANGE: /* Some status information like video aspect and video scale permissions do