diff options
Diffstat (limited to 'gui/mplayer/mw.c')
-rw-r--r-- | gui/mplayer/mw.c | 32 |
1 files changed, 16 insertions, 16 deletions
diff --git a/gui/mplayer/mw.c b/gui/mplayer/mw.c index 1d9dfbedc8..4e64af3a51 100644 --- a/gui/mplayer/mw.c +++ b/gui/mplayer/mw.c @@ -73,7 +73,7 @@ void mplMainDraw( void ) { if ( appMPlayer.mainWindow.State == wsWindowClosed ) exit_player( MSGTR_Exit_quit ); - + if ( appMPlayer.mainWindow.Visible == wsWindowNotVisible || !mainVisible ) return; // !appMPlayer.mainWindow.Mapped ) return; @@ -125,7 +125,7 @@ void mplEventHandling( int msg,float param ) goto play; case evSetSubtitle: - mp_property_do("sub",M_PROPERTY_SET,&iparam,guiIntfStruct.mpcontext); + mp_property_do("sub",M_PROPERTY_SET,&iparam,guiIntfStruct.mpcontext); break; #ifdef CONFIG_VCD @@ -192,7 +192,7 @@ play: guiIntfStruct.Chapter=guiIntfStruct.DVD.current_chapter; guiIntfStruct.Angle=guiIntfStruct.DVD.current_angle; guiIntfStruct.DiskChanged=1; - } + } break; #endif } @@ -226,9 +226,9 @@ NoPause: mplPause(); break; - case evStop: - guiIntfStruct.Playing=guiSetStop; - mplState(); + case evStop: + guiIntfStruct.Playing=guiSetStop; + mplState(); guiIntfStruct.NoWindow=False; break; @@ -269,7 +269,7 @@ NoPause: case evSetVolume: guiIntfStruct.Volume=param; goto set_volume; - case evSetBalance: + case evSetBalance: guiIntfStruct.Balance=param; set_volume: { @@ -358,7 +358,7 @@ set_volume: wsClearWindow( appMPlayer.subWindow ); #ifdef CONFIG_DVDREAD if ( guiIntfStruct.StreamType == STREAMTYPE_DVD || guiIntfStruct.StreamType == STREAMTYPE_VCD ) goto play_dvd_2; - else + else #endif guiIntfStruct.NewPlay=1; break; @@ -424,7 +424,7 @@ void mplMainMouseHandle( int Button,int X,int Y,int RX,int RY ) sx=X; sy=Y; boxMoved=1; itemtype=itPLMButton; SelectedItem=currentselected; if ( SelectedItem == -1 ) break; - boxMoved=0; + boxMoved=0; item=&appMPlayer.Items[SelectedItem]; itemtype=item->type; item->pressed=btnPressed; @@ -517,7 +517,7 @@ void mplMainKeyHandle( int KeyCode,int Type,int Key ) int msg = evNone; if ( Type != wsKeyPressed ) return; - + if ( !Key ) { switch ( KeyCode ) @@ -544,11 +544,11 @@ void mplMainKeyHandle( int KeyCode,int Type,int Key ) case wsXF86Prev: msg=evPrev; break; case wsXF86Next: msg=evNext; break; case wsXF86Media: msg=evLoad; break; - case wsEscape: + case wsEscape: if ( appMPlayer.subWindow.isFullScreen ) - { - if ( guiIntfStruct.event_struct ) ((XEvent *)guiIntfStruct.event_struct)->type=None; - mplEventHandling( evNormalSize,0 ); + { + if ( guiIntfStruct.event_struct ) ((XEvent *)guiIntfStruct.event_struct)->type=None; + mplEventHandling( evNormalSize,0 ); return; } default: vo_x11_putkey( Key ); return; @@ -580,7 +580,7 @@ void mplDandDHandler(int num,char** files) if(stat(str,&buf) == 0 && S_ISDIR(buf.st_mode) == 0) { /* this is not a directory so try to play it */ mp_msg( MSGT_GPLAYER,MSGL_V,"Received D&D %s\n",str ); - + /* check if it is a subtitle file */ { char* ext = strrchr(str,'.'); @@ -605,7 +605,7 @@ void mplDandDHandler(int num,char** files) } item = calloc(1,sizeof(plItem)); - + /* FIXME: decompose file name ? */ /* yes -- Pontscho */ if ( strrchr( str,'/' ) ) { |