[Mplayer-cvslog] CVS: main/Gui/mplayer mw.h,1.32,1.33

Zoltan Ponekker pontscho at mplayer.dev.hu
Mon Nov 19 10:49:01 CET 2001


Update of /cvsroot/mplayer/main/Gui/mplayer
In directory mplayer:/var/tmp.root/cvs-serv26904/Gui/mplayer

Modified Files:
	mw.h 
Log Message:
dvd playing bug fixed

Index: mw.h
===================================================================
RCS file: /cvsroot/mplayer/main/Gui/mplayer/mw.h,v
retrieving revision 1.32
retrieving revision 1.33
diff -u -r1.32 -r1.33
--- mw.h	16 Nov 2001 23:17:52 -0000	1.32
+++ mw.h	19 Nov 2001 09:48:59 -0000	1.33
@@ -225,52 +225,43 @@
   {
 // --- user events
    case evExit:
-//        IZE("evExit");
         wsDoExit();  // sets wsTrue=False;
         exit_player( "Exit" );
         break;
-   case evIconify:
-        switch ( (int)param )
-         {
-          case 0: wsIconify( appMPlayer.mainWindow ); break;
-          case 1: wsIconify( appMPlayer.subWindow ); break;
-         }
-        break;
-   case evFullScreen:
-        IZE("evFullS");
-        for ( j=0;j<appMPlayer.NumberOfItems + 1;j++ )
-         {
-          if ( appMPlayer.Items[j].msg == evFullScreen )
-           {
-            appMPlayer.Items[j].tmp=!appMPlayer.Items[j].tmp;
-            appMPlayer.Items[j].pressed=appMPlayer.Items[j].tmp;
-           }
-         }
-        mplMainRender=1;
-        mplFullScreen();
-        break;
 
+   case evPlayDVD:
+        mplShMem->StreamType=STREAMTYPE_DVD;
+	
+   case evPlay:
    case evPlaySwitchToPause:
-        IZE("evPlay->Pause");
-        if ( Filename )
-         {
-          btnModify( evPlaySwitchToPause,btnDisabled );
-          btnModify( evPauseSwitchToPlay,btnReleased );
+        btnModify( evPlaySwitchToPause,btnDisabled );
+        btnModify( evPauseSwitchToPlay,btnReleased );
+        if ( ( msg == evPlaySwitchToPause )&( mplShMem->Playing == 1 ) ) goto NoPause;
+        mplMainRender=1;
+	
+        switch ( mplShMem->StreamType )
+         {
+//          case STREAMTYPE_FILE:   strcat( trbuf,"f" ); break;
+//          case STREAMTYPE_STREAM: strcat( trbuf,"u" ); break;
+//          case STREAMTYPE_VCD:    strcat( trbuf,"v" ); break;
+          case STREAMTYPE_DVD:    
+	       dvd_title=1; 
+	       dvd_chapter=1; 
+	       dvd_angle=1; 
+	       strcpy( mplShMem->Filename,"/dev/dvd" );
+	       break;
          }
-        if ( mplShMem->Playing == 1 ) goto NoPause;
-   case evPlay:
-        IZE("evPlay");
-        mplMainRender=1;
         mplPlay();
         break;
+	
+//        break;
 
+   case evPause:
    case evPauseSwitchToPlay:
-        IZE("evPause->Play");
+Pause:
         btnModify( evPlaySwitchToPause,btnReleased );
         btnModify( evPauseSwitchToPlay,btnDisabled );
-   case evPause:
 NoPause:
-        IZE("evPause");
         mplMainRender=1;
         mplPause();
         break;
@@ -284,10 +275,8 @@
         break;
 
    case evLoadPlay:
-        IZE("evLoadPlay");
         mplMainAutoPlay=1;
    case evLoad:
-        IZE("evLoad");
         mplMainRender=1;
         gtkSendMessage( evLoad );
         break;
@@ -341,6 +330,13 @@
    case evSetBalance: mplShMem->VolumeChanged=1; break;
 
 
+   case evIconify:
+        switch ( (int)param )
+         {
+          case 0: wsIconify( appMPlayer.mainWindow ); break;
+          case 1: wsIconify( appMPlayer.subWindow ); break;
+         }
+        break;
    case evNormalSize:
         if ( mplShMem->Playing )
          {
@@ -363,6 +359,19 @@
           mplResize( appMPlayer.subWindow.X,appMPlayer.subWindow.Y,moviewidth,movieheight );
          }
         break;
+   case evFullScreen:
+        IZE("evFullS");
+        for ( j=0;j<appMPlayer.NumberOfItems + 1;j++ )
+         {
+          if ( appMPlayer.Items[j].msg == evFullScreen )
+           {
+            appMPlayer.Items[j].tmp=!appMPlayer.Items[j].tmp;
+            appMPlayer.Items[j].pressed=appMPlayer.Items[j].tmp;
+           }
+         }
+        mplMainRender=1;
+        mplFullScreen();
+        break;
 
 // --- timer events
    case evHideMouseCursor:
@@ -382,13 +391,11 @@
           mplMainRender=1;
           mplMainAutoPlay=0;
           mplPlay();
-	  break;
          }
 	if ( mplMiddleMenu )
 	 {
 	  mplMiddleMenu=0;
 	  mplMsgHandle( gtkShMem->popupmenu,0 );
-	  break;
 	 }
         break;
 // --- system events




More information about the MPlayer-cvslog mailing list