# HG changeset patch # User ib # Date 1359043608 0 # Node ID b1d32b46514ebadfaf2e948af66f9b8f6cd9ef84 # Parent 3919b6360e5469bb01a2015b6110f2247dd0b72b Get rid of uiVideoRender. Directly use guiInfo.Playing instead. diff -r 3919b6360e54 -r b1d32b46514e gui/interface.c --- a/gui/interface.c Thu Jan 24 15:59:24 2013 +0000 +++ b/gui/interface.c Thu Jan 24 16:06:48 2013 +0000 @@ -229,8 +229,6 @@ guiInfo.Playing = GUI_STOP; - uiVideoRender = True; - playlist = listMgr(PLAYLIST_ITEM_GET_CURR, 0); if (playlist && !filename) { @@ -268,7 +266,6 @@ cfg_write(); - uiVideoRender = False; uiMainRender = False; // NOTE TO MYSELF: destroy the windows @@ -874,7 +871,6 @@ gui(GUI_SET_STATE, (void *)GUI_STOP); wsEvents(); - uiVideoRender = True; wsWindowRedraw(&guiApp.videoWindow); wsMouseVisibility(&guiApp.videoWindow, wsShowMouseCursor); } diff -r 3919b6360e54 -r b1d32b46514e gui/ui/ui.h --- a/gui/ui/ui.h Thu Jan 24 15:59:24 2013 +0000 +++ b/gui/ui/ui.h Thu Jan 24 16:06:48 2013 +0000 @@ -19,7 +19,6 @@ #ifndef MPLAYER_GUI_UI_H #define MPLAYER_GUI_UI_H -extern int uiVideoRender; extern int uiMainRender; extern unsigned char * mainDrawBuffer; diff -r 3919b6360e54 -r b1d32b46514e gui/ui/video.c --- a/gui/ui/video.c Thu Jan 24 15:59:24 2013 +0000 +++ b/gui/ui/video.c Thu Jan 24 16:06:48 2013 +0000 @@ -30,7 +30,6 @@ #include "gui/interface.h" #include "gui/dialog/dialog.h" -int uiVideoRender = False; int videoVisible = 0; void uiVideoDraw( void ) @@ -41,11 +40,10 @@ if ( guiApp.videoWindow.State == wsWindowFocusOut && metacity_hack != 3 ) videoVisible--; if ( !guiApp.videoWindow.Mapped || - guiApp.videoWindow.Visible == wsWindowNotVisible ) return; + guiApp.videoWindow.Visible == wsWindowNotVisible || + guiInfo.Playing) return; - if ( guiInfo.Playing ) uiVideoRender=False; - - if ( uiVideoRender && guiApp.videoWindow.State == wsWindowExpose ) + if ( guiApp.videoWindow.State == wsWindowExpose ) { wsWindowBackground(&guiApp.videoWindow, guiApp.video.R, guiApp.video.G, guiApp.video.B); if ( guiApp.video.Bitmap.Image ) wsImageDraw( &guiApp.videoWindow );