From fc24a623a20f61693c7a70f173bb00519ffc72db Mon Sep 17 00:00:00 2001 From: reimar Date: Fri, 26 Jun 2009 15:38:40 +0000 Subject: Get rid of completely pointless vt_doit variable git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29399 b3059339-0415-0410-9bf9-f77b7e298cf2 --- libvo/vo_fbdev.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'libvo') diff --git a/libvo/vo_fbdev.c b/libvo/vo_fbdev.c index 0d64702587..9e8d79d995 100644 --- a/libvo/vo_fbdev.c +++ b/libvo/vo_fbdev.c @@ -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); -- cgit v1.2.3