Mercurial > mplayer.hg
comparison Gui/mplayer/play.c @ 5701:67f0194f3a8c
fix compile bug
author | pontscho |
---|---|
date | Fri, 19 Apr 2002 10:56:26 +0000 |
parents | 436cf6ef67fd |
children | 20c335d98ab3 |
comparison
equal
deleted
inserted
replaced
5700:b2e0f3b56b7c | 5701:67f0194f3a8c |
---|---|
221 { | 221 { |
222 int stop = 0; | 222 int stop = 0; |
223 switch ( guiIntfStruct.StreamType ) | 223 switch ( guiIntfStruct.StreamType ) |
224 { | 224 { |
225 // case STREAMTYPE_FILE: | 225 // case STREAMTYPE_FILE: |
226 #ifdef USE_DVDREAD | |
226 case STREAMTYPE_DVD: | 227 case STREAMTYPE_DVD: |
227 if ( guiIntfStruct.Playing == 2 ) break; | 228 if ( guiIntfStruct.Playing == 2 ) break; |
228 if ( --guiIntfStruct.DVD.current_chapter == 0 ) | 229 if ( --guiIntfStruct.DVD.current_chapter == 0 ) |
229 { | 230 { |
230 guiIntfStruct.DVD.current_chapter=1; | 231 guiIntfStruct.DVD.current_chapter=1; |
232 } | 233 } |
233 guiIntfStruct.Track=guiIntfStruct.DVD.current_title; | 234 guiIntfStruct.Track=guiIntfStruct.DVD.current_title; |
234 if ( stop ) mplEventHandling( evStop,0 ); | 235 if ( stop ) mplEventHandling( evStop,0 ); |
235 if ( guiIntfStruct.Playing == 1 ) mplEventHandling( evPlay,0 ); | 236 if ( guiIntfStruct.Playing == 1 ) mplEventHandling( evPlay,0 ); |
236 break; | 237 break; |
238 #endif | |
237 } | 239 } |
238 } | 240 } |
239 | 241 |
240 void mplNext( void ) | 242 void mplNext( void ) |
241 { | 243 { |
242 int stop = 0; | 244 int stop = 0; |
243 switch ( guiIntfStruct.StreamType ) | 245 switch ( guiIntfStruct.StreamType ) |
244 { | 246 { |
245 // case STREAMTYPE_FILE: | 247 // case STREAMTYPE_FILE: |
248 #ifdef USE_DVDREAD | |
246 case STREAMTYPE_DVD: | 249 case STREAMTYPE_DVD: |
247 if ( guiIntfStruct.DVD.current_chapter++ == guiIntfStruct.DVD.chapters ) | 250 if ( guiIntfStruct.DVD.current_chapter++ == guiIntfStruct.DVD.chapters ) |
248 { | 251 { |
249 guiIntfStruct.DVD.current_chapter=1; | 252 guiIntfStruct.DVD.current_chapter=1; |
250 if ( ++guiIntfStruct.DVD.current_title > guiIntfStruct.DVD.titles ) { guiIntfStruct.DVD.current_title=guiIntfStruct.DVD.titles; stop=1; } | 253 if ( ++guiIntfStruct.DVD.current_title > guiIntfStruct.DVD.titles ) { guiIntfStruct.DVD.current_title=guiIntfStruct.DVD.titles; stop=1; } |
251 } | 254 } |
252 guiIntfStruct.Track=guiIntfStruct.DVD.current_title; | 255 guiIntfStruct.Track=guiIntfStruct.DVD.current_title; |
253 if ( stop ) mplEventHandling( evStop,0 ); | 256 if ( stop ) mplEventHandling( evStop,0 ); |
254 if ( guiIntfStruct.Playing == 1 ) mplEventHandling( evPlay,0 ); | 257 if ( guiIntfStruct.Playing == 1 ) mplEventHandling( evPlay,0 ); |
255 break; | 258 break; |
256 } | 259 #endif |
257 } | 260 } |
261 } |