[Mplayer-cvslog] CVS: main/Gui/mplayer play.c,1.31,1.32 play.h,1.11,1.12

Zoltan Ponekker pontscho at mplayer.dev.hu
Tue Sep 25 16:00:22 CEST 2001


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

Modified Files:
	play.c play.h 
Log Message:
compile bug fixed.

Index: play.c
===================================================================
RCS file: /cvsroot/mplayer/main/Gui/mplayer/play.c,v
retrieving revision 1.31
retrieving revision 1.32
diff -u -r1.31 -r1.32
--- play.c	17 Sep 2001 21:16:00 -0000	1.31
+++ play.c	25 Sep 2001 14:00:19 -0000	1.32
@@ -46,11 +46,13 @@
 
 void mplStop()
 {
- if ( !mplShMem->Playing ) return;
  mplShMem->Playing=0;
  mplShMem->TimeSec=0;
  mplShMem->Position=0;
  mplShMem->AudioType=0;
+ mplSubRender=1;
+ wsPostRedisplay( &appMPlayer.subWindow );
+ if ( !mplShMem->Playing ) return;
  if ( !appMPlayer.subWindow.isFullScreen )
   {
    wsMoveWindow( &appMPlayer.subWindow,appMPlayer.sub.x,appMPlayer.sub.y );
@@ -196,4 +198,10 @@
 {
  wsHandleEvents();mplTimerHandler(0); // handle GUI timer events
  if ( mplShMem->SkinChange ) { ChangeSkin(); mplShMem->SkinChange=0;  }
+}
+
+void mplResizeToMovieSize( unsigned int width,unsigned int height )
+{
+ if ( !appMPlayer.subWindow.isFullScreen )
+   wsResizeWindow( &appMPlayer.subWindow,width,height );
 }

Index: play.h
===================================================================
RCS file: /cvsroot/mplayer/main/Gui/mplayer/play.h,v
retrieving revision 1.11
retrieving revision 1.12
diff -u -r1.11 -r1.12
--- play.h	5 Sep 2001 18:16:10 -0000	1.11
+++ play.h	25 Sep 2001 14:00:19 -0000	1.12
@@ -4,8 +4,6 @@
 
 #include "./psignal.h"
 #include "./mplayer.h"
-#include "../wm/ws.h"
-#include "../app.h"
 
 typedef struct
 {
@@ -77,6 +75,7 @@
 extern void mplPlay( void );
 extern void mplPause( void );
 extern void mplResize( unsigned int X,unsigned int Y,unsigned int width,unsigned int height );
+extern void mplResizeToMovieSize( unsigned int width,unsigned int height );
 
 extern void mplIncAudioBufDelay( void );
 extern void mplDecAudioBufDelay( void );




More information about the MPlayer-cvslog mailing list