Mercurial > hg > index.fcgi > dvdnav-rip > dvdnav-rip-1pba
comparison menus.c @ 4:3d971e53bcd5
enable large file support in Makefile
author | paulo@thepaulopc |
---|---|
date | Fri, 13 Nov 2009 01:01:20 -0800 |
parents | 399518436fcf |
children | ec2f201219ff |
comparison
equal
deleted
inserted
replaced
2:516c64130cf8 | 3:7b073a037eba |
---|---|
125 /* We have reached a still frame. A real player application would wait | 125 /* We have reached a still frame. A real player application would wait |
126 * the amount of time specified by the still's length while still handling | 126 * the amount of time specified by the still's length while still handling |
127 * user input to make menus and other interactive stills work. | 127 * user input to make menus and other interactive stills work. |
128 * A length of 0xff means an indefinite still which has to be skipped | 128 * A length of 0xff means an indefinite still which has to be skipped |
129 * indirectly by some user interaction. */ | 129 * indirectly by some user interaction. */ |
130 dvdnav_still_event_t *still_event = (dvdnav_still_event_t *)buf; | 130 { |
131 if (still_event->length < 0xff) | 131 dvdnav_still_event_t *still_event = (dvdnav_still_event_t *)buf; |
132 printf("Skipping %d seconds of still frame\n", still_event->length); | 132 if (still_event->length < 0xff) |
133 else | 133 printf("Skipping %d seconds of still frame\n", still_event->length); |
134 printf("Skipping indefinite length still frame\n"); | 134 else |
135 dvdnav_still_skip(dvdnav); | 135 printf("Skipping indefinite length still frame\n"); |
136 dvdnav_still_skip(dvdnav); | |
137 } | |
136 break; | 138 break; |
137 case DVDNAV_WAIT: | 139 case DVDNAV_WAIT: |
138 /* We have reached a point in DVD playback, where timing is critical. | 140 /* We have reached a point in DVD playback, where timing is critical. |
139 * Player application with internal fifos can introduce state | 141 * Player application with internal fifos can introduce state |
140 * inconsistencies, because libdvdnav is always the fifo's length | 142 * inconsistencies, because libdvdnav is always the fifo's length |
155 /* Player applications should inform their audio decoder to switch channels */ | 157 /* Player applications should inform their audio decoder to switch channels */ |
156 break; | 158 break; |
157 case DVDNAV_HIGHLIGHT: | 159 case DVDNAV_HIGHLIGHT: |
158 /* Player applications should inform their overlay engine to highlight the | 160 /* Player applications should inform their overlay engine to highlight the |
159 * given button */ | 161 * given button */ |
160 dvdnav_highlight_event_t *highlight_event = (dvdnav_highlight_event_t *)buf; | 162 { |
161 printf("Selected button %d\n", highlight_event->buttonN); | 163 dvdnav_highlight_event_t *highlight_event = (dvdnav_highlight_event_t *)buf; |
164 printf("Selected button %d\n", highlight_event->buttonN); | |
165 } | |
162 break; | 166 break; |
163 case DVDNAV_VTS_CHANGE: | 167 case DVDNAV_VTS_CHANGE: |
164 /* Some status information like video aspect and video scale permissions do | 168 /* Some status information like video aspect and video scale permissions do |
165 * not change inside a VTS. Therefore this event can be used to query such | 169 * not change inside a VTS. Therefore this event can be used to query such |
166 * information only when necessary and update the decoding/displaying | 170 * information only when necessary and update the decoding/displaying |