# HG changeset patch # User arpi # Date 998516067 0 # Node ID 248972c26eeeccfc37612f9254232d679c8317f3 # Parent 3c33deb3e5616f297b5b0c78ef59db68a51a8bcd fixed mga uninit diff -r 3c33deb3e561 -r 248972c26eee libvo/mga_common.c --- a/libvo/mga_common.c Wed Aug 22 21:34:10 2001 +0000 +++ b/libvo/mga_common.c Wed Aug 22 21:34:27 2001 +0000 @@ -211,3 +211,8 @@ } +static int mga_uninit(){ + ioctl( f,MGA_VID_OFF,0 ); + munmap(frames[0],mga_vid_config.frame_size*mga_vid_config.num_frames); + close(f); +} diff -r 3c33deb3e561 -r 248972c26eee libvo/vo_mga.c --- a/libvo/vo_mga.c Wed Aug 22 21:34:10 2001 +0000 +++ b/libvo/vo_mga.c Wed Aug 22 21:34:27 2001 +0000 @@ -109,8 +109,8 @@ static void uninit(void) { - ioctl( f,MGA_VID_OFF,0 ); -printf("vo: uninit!\n"); + mga_uninit(); + printf("vo: uninit!\n"); } static void draw_osd(void) diff -r 3c33deb3e561 -r 248972c26eee libvo/vo_xmga.c --- a/libvo/vo_xmga.c Wed Aug 22 21:34:10 2001 +0000 +++ b/libvo/vo_xmga.c Wed Aug 22 21:34:27 2001 +0000 @@ -196,6 +196,7 @@ f = open(devname,O_RDWR); if(f == -1) { + perror("open"); printf("Couldn't open %s\n",devname); return(-1); } @@ -339,6 +340,6 @@ uninit(void) { saver_on(mDisplay); - ioctl( f,MGA_VID_OFF,0 ); -printf("vo: uninit!\n"); + mga_uninit(); + printf("vo: uninit!\n"); }