Get rid of completely pointless vt_doit variable

git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29399 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
reimar 2009-06-26 15:38:40 +00:00
parent 83ed88fb96
commit fc24a623a2
1 changed files with 1 additions and 5 deletions

View File

@ -556,7 +556,6 @@ static fb_mode_t *fb_mode = NULL;
/* vt related variables */
static FILE *vt_fp = NULL;
static int vt_doit = 1;
/* vo_fbdev related variables */
static int fb_dev_fd;
@ -969,12 +968,10 @@ static int config(uint32_t width, uint32_t height, uint32_t d_width,
if (fs || vm)
memset(frame_buffer, '\0', fb_line_len * fb_yres);
}
if (vt_doit && !(vt_fp = fopen("/dev/tty", "w"))) {
if (!(vt_fp = fopen("/dev/tty", "w"))) {
mp_msg(MSGT_VO, MSGL_ERR, "can't fopen /dev/tty: %s\n", strerror(errno));
vt_doit = 0;
}
if (vt_doit)
vt_set_textarea(last_row, fb_yres);
return 0;
@ -1059,7 +1056,6 @@ static void uninit(void)
if (ioctl(fb_tty_fd, KDSETMODE, KD_TEXT) < 0)
mp_msg(MSGT_VO, MSGL_WARN, "Can't restore text mode: %s\n", strerror(errno));
}
if (vt_doit)
vt_set_textarea(0, fb_orig_vinfo.yres);
close(fb_tty_fd);
close(fb_dev_fd);