comparison libvo/vo_fbdev.c @ 29359:49f3eca2389b

Close /dev/tty again on uninit.
author reimar
date Fri, 26 Jun 2009 15:41:34 +0000
parents 7b2a6a462bfc
children cac9b1442efe
comparison
equal deleted inserted replaced
29358:7b2a6a462bfc 29359:49f3eca2389b
1055 if (fb_tty_fd >= 0) { 1055 if (fb_tty_fd >= 0) {
1056 if (ioctl(fb_tty_fd, KDSETMODE, KD_TEXT) < 0) 1056 if (ioctl(fb_tty_fd, KDSETMODE, KD_TEXT) < 0)
1057 mp_msg(MSGT_VO, MSGL_WARN, "Can't restore text mode: %s\n", strerror(errno)); 1057 mp_msg(MSGT_VO, MSGL_WARN, "Can't restore text mode: %s\n", strerror(errno));
1058 } 1058 }
1059 vt_set_textarea(0, fb_orig_vinfo.yres); 1059 vt_set_textarea(0, fb_orig_vinfo.yres);
1060 if (vt_fp)
1061 fclose(vt_fp);
1060 close(fb_tty_fd); 1062 close(fb_tty_fd);
1061 close(fb_dev_fd); 1063 close(fb_dev_fd);
1062 if (frame_buffer) 1064 if (frame_buffer)
1063 munmap(frame_buffer, fb_size); 1065 munmap(frame_buffer, fb_size);
1064 frame_buffer = NULL; 1066 frame_buffer = NULL;