summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorreimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2>2009-06-26 15:38:40 +0000
committerreimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2>2009-06-26 15:38:40 +0000
commitfc24a623a20f61693c7a70f173bb00519ffc72db (patch)
tree52158fe3dbff0841de8715ca19e29ae4262d989d
parent83ed88fb96dfb000381609d8f08aacbc6e5966ff (diff)
downloadmpv-fc24a623a20f61693c7a70f173bb00519ffc72db.tar.bz2
mpv-fc24a623a20f61693c7a70f173bb00519ffc72db.tar.xz
Get rid of completely pointless vt_doit variable
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29399 b3059339-0415-0410-9bf9-f77b7e298cf2
-rw-r--r--libvo/vo_fbdev.c6
1 files changed, 1 insertions, 5 deletions
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);