changeset 1791:2e86c5c8071e

fix subvindov
author pontscho
date Thu, 30 Aug 2001 22:07:19 +0000
parents f34087fa1469
children 89f616b1c2ae
files Gui/mplayer/mplayer.c Gui/mplayer/mw.h Gui/mplayer/play.c
diffstat 3 files changed, 3 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/Gui/mplayer/mplayer.c	Thu Aug 30 21:49:24 2001 +0000
+++ b/Gui/mplayer/mplayer.c	Thu Aug 30 22:07:19 2001 +0000
@@ -78,7 +78,6 @@
 
  vo_setwindow(appMPlayer.subWindow.WindowID, appMPlayer.subWindow.wGC);
  vo_setwindowsize( appMPlayer.sub.width,appMPlayer.sub.height );
- mplSubRender=0;
  
  wsCreateWindow( &appMPlayer.mainWindow,
   appMPlayer.main.x,appMPlayer.main.y,appMPlayer.main.width,appMPlayer.main.height,
--- a/Gui/mplayer/mw.h	Thu Aug 30 21:49:24 2001 +0000
+++ b/Gui/mplayer/mw.h	Thu Aug 30 22:07:19 2001 +0000
@@ -323,9 +323,6 @@
    case evSetBalance: mixerSetBalance( param ); break;
    case evMute:       mixerMute();       break;
 
-//   case evIncAudioBufDelay: mplIncAudioBufDelay(); break;
-//   case evDecAudioBufDelay: mplDecAudioBufDelay(); break;
-
    case evNormalSize:
         if ( mplShMem->Playing ) 
 	 {
--- a/Gui/mplayer/play.c	Thu Aug 30 21:49:24 2001 +0000
+++ b/Gui/mplayer/play.c	Thu Aug 30 22:07:19 2001 +0000
@@ -53,6 +53,7 @@
 printf("%%%%%% STOP  \n");
 // ---
  mplShMem->Playing=0;
+ mplSubRender=1;
 }
 
 void mplPlay( void )
@@ -63,6 +64,7 @@
 printf("%%%%%% PLAY  \n");
 // ---
  mplShMem->Playing=1;
+ mplSubRender=0;
 }
 
 void mplPause( void )
@@ -72,6 +74,7 @@
 printf("%%%%%% PAUSE  \n");
 // ---
  mplShMem->Playing=2;
+ mplSubRender=0;
 }
 
 void mplResize( unsigned int X,unsigned int Y,unsigned int width,unsigned int height )