diff menus.c @ 3:ffbf478b80c2

add Makefile; put missing braces back (that were removed in r399518436fcf)
author paulo@thepaulopc
date Fri, 13 Nov 2009 00:21:59 -0800
parents 399518436fcf
children ec2f201219ff
line diff
     1.1 --- a/menus.c	Fri Nov 13 00:02:37 2009 -0800
     1.2 +++ b/menus.c	Fri Nov 13 00:21:59 2009 -0800
     1.3 @@ -127,12 +127,14 @@
     1.4  			 * user input to make menus and other interactive stills work.
     1.5  			 * A length of 0xff means an indefinite still which has to be skipped
     1.6  			 * indirectly by some user interaction. */
     1.7 -			dvdnav_still_event_t *still_event = (dvdnav_still_event_t *)buf;
     1.8 -			if (still_event->length < 0xff)
     1.9 -			  printf("Skipping %d seconds of still frame\n", still_event->length);
    1.10 -			else
    1.11 -			  printf("Skipping indefinite length still frame\n");
    1.12 -			dvdnav_still_skip(dvdnav);
    1.13 +			{
    1.14 +				dvdnav_still_event_t *still_event = (dvdnav_still_event_t *)buf;
    1.15 +				if (still_event->length < 0xff)
    1.16 +				  printf("Skipping %d seconds of still frame\n", still_event->length);
    1.17 +				else
    1.18 +				  printf("Skipping indefinite length still frame\n");
    1.19 +				dvdnav_still_skip(dvdnav);
    1.20 +			}
    1.21  			break;
    1.22  		case DVDNAV_WAIT:
    1.23  			/* We have reached a point in DVD playback, where timing is critical.
    1.24 @@ -157,8 +159,10 @@
    1.25  		case DVDNAV_HIGHLIGHT:
    1.26  			/* Player applications should inform their overlay engine to highlight the
    1.27  			 * given button */
    1.28 -			dvdnav_highlight_event_t *highlight_event = (dvdnav_highlight_event_t *)buf;
    1.29 -			printf("Selected button %d\n", highlight_event->buttonN);
    1.30 +			{
    1.31 +				dvdnav_highlight_event_t *highlight_event = (dvdnav_highlight_event_t *)buf;
    1.32 +				printf("Selected button %d\n", highlight_event->buttonN);
    1.33 +			}
    1.34  			break;
    1.35  		case DVDNAV_VTS_CHANGE:
    1.36  			/* Some status information like video aspect and video scale permissions do