summaryrefslogtreecommitdiffstats
path: root/libvo/vo_xv.c
diff options
context:
space:
mode:
authoralbeu <albeu@b3059339-0415-0410-9bf9-f77b7e298cf2>2002-02-23 01:38:06 +0000
committeralbeu <albeu@b3059339-0415-0410-9bf9-f77b7e298cf2>2002-02-23 01:38:06 +0000
commit64ae87b5e49f90321ccc3c17401d1695e9de9c1b (patch)
treef910fa4b199351bcc7b29246fcad08506ef6923e /libvo/vo_xv.c
parent3687495972a4dcb9b5b27d21a203a5212d6db2d2 (diff)
downloadmpv-64ae87b5e49f90321ccc3c17401d1695e9de9c1b.tar.bz2
mpv-64ae87b5e49f90321ccc3c17401d1695e9de9c1b.tar.xz
Bugfix in x11_common.c mainly. Don't screw up the display name,
don't forget to close the display (vo_xv) and to reset vo_depthonscreen when we have destroyed the window and closed the display !!!!! Open the display before using it (vo_x11) !!! git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@4816 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'libvo/vo_xv.c')
-rw-r--r--libvo/vo_xv.c8
1 files changed, 1 insertions, 7 deletions
diff --git a/libvo/vo_xv.c b/libvo/vo_xv.c
index c270025a02..025ac350e4 100644
--- a/libvo/vo_xv.c
+++ b/libvo/vo_xv.c
@@ -765,17 +765,11 @@ static void uninit(void)
{
int i;
saver_on(mDisplay); // screen saver back on
-#ifdef HAVE_NEW_GUI
- if ( vo_window == None )
-#endif
- {
- XDestroyWindow( mDisplay,vo_window );
- }
for( i=0;i<num_buffers;i++ ) deallocate_xvimage( i );
#ifdef HAVE_XF86VM
vo_vm_close(mDisplay);
#endif
-
+ vo_x11_uninit(mDisplay, vo_window);
}
static uint32_t preinit(const char *arg)