From 4001e2c63fab3a2c24af7e5b56b00aa21b229037 Mon Sep 17 00:00:00 2001 From: pontscho Date: Fri, 31 Aug 2001 11:26:14 +0000 Subject: fix after stop redraw. vagy nem. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@1798 b3059339-0415-0410-9bf9-f77b7e298cf2 --- Gui/mplayer/play.c | 2 ++ mplayer.c | 17 +++++++++-------- 2 files changed, 11 insertions(+), 8 deletions(-) diff --git a/Gui/mplayer/play.c b/Gui/mplayer/play.c index 8ec67641bc..f6212c2691 100644 --- a/Gui/mplayer/play.c +++ b/Gui/mplayer/play.c @@ -58,6 +58,8 @@ printf("%%%%%% STOP \n"); wsMoveWindow( &appMPlayer.subWindow,appMPlayer.sub.x,appMPlayer.sub.y ); wsResizeWindow( &appMPlayer.subWindow,appMPlayer.sub.width,appMPlayer.sub.height ); } + mplSubRender=1; + wsPostRedisplay( &appMPlayer.subWindow ); } void mplPlay( void ) diff --git a/mplayer.c b/mplayer.c index ea797b9038..4d665248bd 100644 --- a/mplayer.c +++ b/mplayer.c @@ -1840,9 +1840,6 @@ mp_msg(MSGT_GLOBAL,MSGL_V,"EOF code: %d \n",eof); } -#ifdef HAVE_NEW_GUI - if(use_gui) mplShMem->Playing=0; -#endif if(curr_filename+1uninit(); #endif -#ifdef HAVE_NEW_GUI - mplSubRender=1; - wsPostRedisplay( &appMPlayer.subWindow ); -#endif - current_module="uninit_ao"; if(audio_out) audio_out->uninit(); // if(encode_name) avi_fixate(); } +#ifdef HAVE_NEW_GUI + if(use_gui) + { + mplStop(); + mplSubRender=1; + wsPostRedisplay( &appMPlayer.subWindow ); + } +#endif + goto_next_file: // don't jump here after ao/vo/getch initialization! if(use_gui || ++curr_filename