changeset 1697:0b881b5e9e7b

commented, timer code disabled (see ws.c)
author arpi
date Sat, 25 Aug 2001 23:02:26 +0000
parents eca342b2a2f4
children 7f8579211924
files Gui/mplayer/mplayer.c
diffstat 1 files changed, 15 insertions(+), 8 deletions(-) [+]
line wrap: on
line diff
--- a/Gui/mplayer/mplayer.c	Sat Aug 25 23:00:55 2001 +0000
+++ b/Gui/mplayer/mplayer.c	Sat Aug 25 23:02:26 2001 +0000
@@ -18,8 +18,8 @@
 
 #include "../../config.h"
 
-#define mplMouseTimerConst  100
-#define mplRedrawTimerConst 50
+#define mplMouseTimerConst  10
+#define mplRedrawTimerConst 5
 
 int mplMouseTimer  = mplMouseTimerConst;
 int mplRedrawTimer = mplRedrawTimerConst;
@@ -51,11 +51,18 @@
 void mplInit( int argc,char* argv[], char *envp[] )
 {
 // parse_cfgfiles( argc,argv,envp );
+
+ // allocates shmem to gtkShMem
+ // fork() a process which runs gtkThreadProc()  [gtkChildPID]
  gtkInit( argc,argv,envp );
+
+ // allocates shmem to mplShMem
+ // init fields of this struct to default values
  mplMPlayerInit( argc,argv,envp );
 
- message=mplErrorHandler;
+ message=mplErrorHandler;  // error messagebox drawing function
 
+ // opens X display, checks for extensions (XShape, DGA etc)
  wsXInit();
 
  if ( ( mplDrawBuffer = (unsigned char *)calloc( 1,appMPlayer.main.Bitmap.ImageSize ) ) == NULL )
@@ -98,15 +105,15 @@
  btnModify( evSetBalance,mplShMem->Balance );
  btnModify( evSetMoviePosition,mplShMem->Position );
 
- timerSetHandler( mplTimerHandler );
- timerInit();
+// timerSetHandler( mplTimerHandler );  // various timer hacks
+// timerInit();
 
- wsMainLoop();
+ wsMainLoop();  // X event handler (calls mplTimerHandler periodically!)
 
  dbprintf( 1,"[mplayer] exit.\n" );
 
  mplStop();
- timerDone();
- gtkDone();
+// timerDone();
+ gtkDone();  // kills the gtkThreadProc() process
  wsXDone();
 }