Mercurial > mplayer.hg
diff Gui/mplayer/play.c @ 1729:d6c99f70449e
fix hprogressbar
author | pontscho |
---|---|
date | Tue, 28 Aug 2001 15:55:02 +0000 |
parents | 5e4214a7540e |
children | b266f763cad3 |
line wrap: on
line diff
--- a/Gui/mplayer/play.c Tue Aug 28 15:37:24 2001 +0000 +++ b/Gui/mplayer/play.c Tue Aug 28 15:55:02 2001 +0000 @@ -7,9 +7,9 @@ int mplParent = 1; -int mplx,mply,mplwidth,mplheight; +float gui_position=-1; -float gui_position=-1; +int mplx,mply,mplwidth,mplheight; #include "../app.h" @@ -100,7 +100,11 @@ void mplMPlayerInit( int argc,char* argv[], char *envp[] ) { +#if 0 mplShMem=shmem_alloc( ShMemSize ); +#else + mplShMem=calloc( 1,ShMemSize ); +#endif signal( SIGTYPE,mplMainSigHandler ); signal( SIGCHLD,SIG_IGN ); @@ -120,7 +124,8 @@ float mplGetPosition( void ) { // return 0.0 ... 100.0 - return (gui_position<0)?(mplShMem->Position):(gui_position*100.0); +// return (gui_position<0)?(mplShMem->Position):(gui_position*100.0); + return mplShMem->Position; } void mplRelSeek( float s ) @@ -128,7 +133,6 @@ // --- printf("%%%%%% RelSEEK=%5.3f \n",s); // --- - mplShMem->Position=mplGetPosition() + s; rel_seek_secs=s; abs_seek_pos=0; } @@ -138,8 +142,6 @@ printf("%%%%%% AbsSEEK=%5.3f \n",s); rel_seek_secs=0.01*s; abs_seek_pos=3; // --- - mplShMem->Position=s; - mplShMem->TimeSec=s; } void mplIncAudioBufDelay( void )