Mercurial > mplayer.hg
comparison Gui/mplayer/play.c @ 1825:1791c7930776
fix sizeof :))))
author | pontscho |
---|---|
date | Sat, 01 Sep 2001 18:39:46 +0000 |
parents | eff8f3c200fa |
children | a4156c8cdd57 |
comparison
equal
deleted
inserted
replaced
1824:33035a1d897e | 1825:1791c7930776 |
---|---|
48 void mplStop() | 48 void mplStop() |
49 { | 49 { |
50 if ( !mplShMem->Playing ) return; | 50 if ( !mplShMem->Playing ) return; |
51 mplShMem->Playing=0; | 51 mplShMem->Playing=0; |
52 mplShMem->TimeSec=0; | 52 mplShMem->TimeSec=0; |
53 mplShMem->Position=0; | |
53 if ( !appMPlayer.subWindow.isFullScreen ) | 54 if ( !appMPlayer.subWindow.isFullScreen ) |
54 { | 55 { |
55 wsMoveWindow( &appMPlayer.subWindow,appMPlayer.sub.x,appMPlayer.sub.y ); | 56 wsMoveWindow( &appMPlayer.subWindow,appMPlayer.sub.x,appMPlayer.sub.y ); |
56 wsResizeWindow( &appMPlayer.subWindow,appMPlayer.sub.width,appMPlayer.sub.height ); | 57 wsResizeWindow( &appMPlayer.subWindow,appMPlayer.sub.width,appMPlayer.sub.height ); |
57 } | 58 } |
94 vo_resize=1; | 95 vo_resize=1; |
95 } | 96 } |
96 | 97 |
97 void mplMPlayerInit( int argc,char* argv[], char *envp[] ) | 98 void mplMPlayerInit( int argc,char* argv[], char *envp[] ) |
98 { | 99 { |
99 #if 0 | 100 mplShMem=calloc( 1,sizeof( mplCommStruct ) ); |
100 mplShMem=shmem_alloc( ShMemSize ); | 101 mplShMem->Balance=50.0f; |
101 #else | |
102 mplShMem=calloc( 1,ShMemSize ); | |
103 #endif | |
104 signal( SIGTYPE,mplMainSigHandler ); | 102 signal( SIGTYPE,mplMainSigHandler ); |
105 | |
106 memset( mplShMem,0,ShMemSize ); | |
107 mplShMem->Balance=50.0f; | |
108 } | 103 } |
109 | 104 |
110 float mplGetPosition( void ) | 105 float mplGetPosition( void ) |
111 { // return 0.0 ... 100.0 | 106 { // return 0.0 ... 100.0 |
112 return mplShMem->Position; | 107 return mplShMem->Position; |