[Mplayer-cvslog] CVS: main/libvo vo_fbdev.c,1.27,1.28

Szabolcs Berecz szabii at users.sourceforge.net
Wed Apr 18 12:59:14 CEST 2001


Update of /cvsroot/mplayer/main/libvo
In directory usw-pr-cvs1:/tmp/cvs-serv10339

Modified Files:
	vo_fbdev.c 
Log Message:
fbdev reset fixed

Index: vo_fbdev.c
===================================================================
RCS file: /cvsroot/mplayer/main/libvo/vo_fbdev.c,v
retrieving revision 1.27
retrieving revision 1.28
diff -C2 -r1.27 -r1.28
*** vo_fbdev.c	2001/04/16 22:27:32	1.27
--- vo_fbdev.c	2001/04/18 10:59:12	1.28
***************
*** 1113,1122 ****
  		fb_cmap_changed = 0;
  	}
  	if (ioctl(fb_dev_fd, FBIOPUT_VSCREENINFO, &fb_orig_vinfo))
! 		printf(FBDEV "Can't set virtual screensize to original value: %s\n", strerror(errno));
  	close(fb_dev_fd);
- 	memset(next_frame, '\0', in_height * in_width * fb_pixel_size);
- 	put_frame();
- 	free(next_frame);
  	munmap(frame_buffer, fb_size);
  }
--- 1113,1126 ----
  		fb_cmap_changed = 0;
  	}
+ //	memset(next_frame, '\0', in_height * in_width * fb_pixel_size);
+ //	put_frame();
+ 	free(next_frame);
+ 	if (ioctl(fb_dev_fd, FBIOGET_VSCREENINFO, &fb_vinfo))
+ 		printf(FBDEV "ioctl FBIOGET_VSCREENINFO: %s\n", strerror(errno));
+ 	fb_orig_vinfo.xoffset = fb_vinfo.xoffset;
+ 	fb_orig_vinfo.yoffset = fb_vinfo.yoffset;
  	if (ioctl(fb_dev_fd, FBIOPUT_VSCREENINFO, &fb_orig_vinfo))
! 		printf(FBDEV "Can't reset original fb_var_screeninfo: %s\n", strerror(errno));
  	close(fb_dev_fd);
  	munmap(frame_buffer, fb_size);
  }


_______________________________________________
Mplayer-cvslog mailing list
Mplayer-cvslog at lists.sourceforge.net
http://lists.sourceforge.net/lists/listinfo/mplayer-cvslog



More information about the MPlayer-cvslog mailing list