diff Gui/mplayer/play.c @ 1825:1791c7930776

fix sizeof :))))
author pontscho
date Sat, 01 Sep 2001 18:39:46 +0000
parents eff8f3c200fa
children a4156c8cdd57
line wrap: on
line diff
--- a/Gui/mplayer/play.c	Sat Sep 01 17:56:31 2001 +0000
+++ b/Gui/mplayer/play.c	Sat Sep 01 18:39:46 2001 +0000
@@ -50,6 +50,7 @@
  if ( !mplShMem->Playing ) return;
  mplShMem->Playing=0;
  mplShMem->TimeSec=0;
+ mplShMem->Position=0;
  if ( !appMPlayer.subWindow.isFullScreen )
   {
    wsMoveWindow( &appMPlayer.subWindow,appMPlayer.sub.x,appMPlayer.sub.y );
@@ -96,15 +97,9 @@
 
 void mplMPlayerInit( int argc,char* argv[], char *envp[] )
 {
-#if 0
- mplShMem=shmem_alloc( ShMemSize );
-#else
- mplShMem=calloc( 1,ShMemSize );
-#endif
+ mplShMem=calloc( 1,sizeof( mplCommStruct ) );
+ mplShMem->Balance=50.0f;
  signal( SIGTYPE,mplMainSigHandler );
-
- memset( mplShMem,0,ShMemSize );
- mplShMem->Balance=50.0f;
 }
 
 float mplGetPosition( void )