1
0
mirror of https://github.com/mpv-player/mpv synced 2025-04-04 23:40:47 +00:00

stop bug fix.

git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@1954 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
pontscho 2001-09-25 15:13:58 +00:00
parent 4d0c8f973d
commit 66a5cbaeab
2 changed files with 3 additions and 10 deletions

View File

@ -50,15 +50,15 @@ void mplStop()
mplShMem->TimeSec=0; mplShMem->TimeSec=0;
mplShMem->Position=0; mplShMem->Position=0;
mplShMem->AudioType=0; mplShMem->AudioType=0;
mplSubRender=1; // if ( !mplShMem->Playing ) return;
wsPostRedisplay( &appMPlayer.subWindow );
if ( !mplShMem->Playing ) return;
if ( !appMPlayer.subWindow.isFullScreen ) if ( !appMPlayer.subWindow.isFullScreen )
{ {
wsMoveWindow( &appMPlayer.subWindow,appMPlayer.sub.x,appMPlayer.sub.y ); wsMoveWindow( &appMPlayer.subWindow,appMPlayer.sub.x,appMPlayer.sub.y );
wsResizeWindow( &appMPlayer.subWindow,appMPlayer.sub.width,appMPlayer.sub.height ); wsResizeWindow( &appMPlayer.subWindow,appMPlayer.sub.width,appMPlayer.sub.height );
} }
mplSubRender=1; mplSubRender=1;
wsClearWindow( appMPlayer.subWindow );
wsSetBackgroundRGB( &appMPlayer.subWindow,appMPlayer.subR,appMPlayer.subG,appMPlayer.subB );
wsPostRedisplay( &appMPlayer.subWindow ); wsPostRedisplay( &appMPlayer.subWindow );
} }

View File

@ -1026,8 +1026,6 @@ current_module="init_libvo";
#ifdef HAVE_NEW_GUI #ifdef HAVE_NEW_GUI
if ( use_gui ) if ( use_gui )
{ {
// if ( !appMPlayer.subWindow.isFullScreen )
// wsResizeWindow( &appMPlayer.subWindow,sh_video->disp_w,sh_video->disp_h );
mplResizeToMovieSize( sh_video->disp_w,sh_video->disp_h ); mplResizeToMovieSize( sh_video->disp_w,sh_video->disp_h );
moviewidth=screen_size_x=sh_video->disp_w; moviewidth=screen_size_x=sh_video->disp_w;
movieheight=screen_size_y=sh_video->disp_h; movieheight=screen_size_y=sh_video->disp_h;
@ -1923,11 +1921,6 @@ goto_next_file: // don't jump here after ao/vo/getch initialization!
if(use_gui) if(use_gui)
{ {
mplStop(); mplStop();
// mplSubRender=1;
// wsPostRedisplay( &appMPlayer.subWindow );
// mplShMem->TimeSec=0;
// mplShMem->Position=0;
// mplShMem->FrameDrop=0;
} }
#endif #endif