Mercurial > mplayer.hg
comparison Gui/mplayer/play.c @ 7009:98bed9e12087
- add dxr3 gui support (dialogbox, etc.)
- fix one small dvd playing bug ( dvd playing don't del the playlist)
- add some ifdef() check
author | pontscho |
---|---|
date | Wed, 14 Aug 2002 23:02:45 +0000 |
parents | 163f78ece9c2 |
children | 8e9607c5897e |
comparison
equal
deleted
inserted
replaced
7008:2af81c9ed167 | 7009:98bed9e12087 |
---|---|
21 #include "./mplayer.h" | 21 #include "./mplayer.h" |
22 #include "play.h" | 22 #include "play.h" |
23 | 23 |
24 #include "../skin/skin.h" | 24 #include "../skin/skin.h" |
25 #include "../skin/font.h" | 25 #include "../skin/font.h" |
26 | |
27 #include "../libmpdemux/stream.h" | |
26 | 28 |
27 extern float rel_seek_secs; | 29 extern float rel_seek_secs; |
28 extern int abs_seek_pos; | 30 extern int abs_seek_pos; |
29 | 31 |
30 static int mplGotoTheNext = 1; | 32 static int mplGotoTheNext = 1; |
244 btnModify( evSetBalance,guiIntfStruct.Balance ); | 246 btnModify( evSetBalance,guiIntfStruct.Balance ); |
245 btnModify( evSetMoviePosition,guiIntfStruct.Position ); | 247 btnModify( evSetMoviePosition,guiIntfStruct.Position ); |
246 btnModify( evFullScreen,!appMPlayer.subWindow.isFullScreen ); | 248 btnModify( evFullScreen,!appMPlayer.subWindow.isFullScreen ); |
247 } | 249 } |
248 | 250 |
249 void mplSetFileName( char * dir,char * name ) | 251 void mplSetFileName( char * dir,char * name,int type ) |
250 { | 252 { |
251 if ( !name ) return; | 253 if ( !name ) return; |
252 | 254 |
253 if ( !dir ) guiSetFilename( guiIntfStruct.Filename,name ) | 255 if ( !dir ) guiSetFilename( guiIntfStruct.Filename,name ) |
254 else guiSetDF( guiIntfStruct.Filename,dir,name ) | 256 else guiSetDF( guiIntfStruct.Filename,dir,name ) |
255 | 257 |
256 guiIntfStruct.StreamType=STREAMTYPE_FILE; | 258 guiIntfStruct.StreamType=type; |
257 guiIntfStruct.FilenameChanged=1; | 259 guiIntfStruct.FilenameChanged=1; |
258 gfree( (void **)&guiIntfStruct.AudioFile ); | 260 gfree( (void **)&guiIntfStruct.AudioFile ); |
259 gfree( (void **)&guiIntfStruct.Subtitlename ); | 261 gfree( (void **)&guiIntfStruct.Subtitlename ); |
260 } | 262 } |
261 | 263 |
283 break; | 285 break; |
284 #endif | 286 #endif |
285 default: | 287 default: |
286 if ( (prev=gtkSet( gtkGetPrevPlItem,0,NULL)) ) | 288 if ( (prev=gtkSet( gtkGetPrevPlItem,0,NULL)) ) |
287 { | 289 { |
288 mplSetFileName( prev->path,prev->name ); | 290 mplSetFileName( prev->path,prev->name,STREAMTYPE_FILE ); |
289 mplGotoTheNext=0; | 291 mplGotoTheNext=0; |
290 break; | 292 break; |
291 } | 293 } |
292 return; | 294 return; |
293 } | 295 } |
319 break; | 321 break; |
320 #endif | 322 #endif |
321 default: | 323 default: |
322 if ( (next=gtkSet( gtkGetNextPlItem,0,NULL)) ) | 324 if ( (next=gtkSet( gtkGetNextPlItem,0,NULL)) ) |
323 { | 325 { |
324 mplSetFileName( next->path,next->name ); | 326 mplSetFileName( next->path,next->name,STREAMTYPE_FILE ); |
325 mplGotoTheNext=0; | 327 mplGotoTheNext=0; |
326 break; | 328 break; |
327 } | 329 } |
328 return; | 330 return; |
329 } | 331 } |