1
mirror of https://github.com/mpv-player/mpv synced 2024-10-30 04:46:41 +01:00

fixed mga uninit

git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@1638 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
arpi 2001-08-22 21:34:27 +00:00
parent 93e3f1b2fb
commit 9927fe4b42
3 changed files with 10 additions and 4 deletions

View File

@ -211,3 +211,8 @@ static int mga_init(){
}
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);
}

View File

@ -109,8 +109,8 @@ get_info(void)
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)

View File

@ -196,6 +196,7 @@ static uint32_t init( uint32_t width, uint32_t height, uint32_t d_width, uint32_
f = open(devname,O_RDWR);
if(f == -1)
{
perror("open");
printf("Couldn't open %s\n",devname);
return(-1);
}
@ -339,6 +340,6 @@ static void
uninit(void)
{
saver_on(mDisplay);
ioctl( f,MGA_VID_OFF,0 );
printf("vo: uninit!\n");
mga_uninit();
printf("vo: uninit!\n");
}