summaryrefslogtreecommitdiffstats
path: root/libvo
diff options
context:
space:
mode:
authordiego <diego@b3059339-0415-0410-9bf9-f77b7e298cf2>2008-11-23 13:55:23 +0000
committerdiego <diego@b3059339-0415-0410-9bf9-f77b7e298cf2>2008-11-23 13:55:23 +0000
commit9c8445f5f95144b5940d8e7677b9d46443aa8bc8 (patch)
tree53cb1e01e298255976dc47781ef664877f522c8f /libvo
parentc6af321ba74b26fa2ef7f0d334b609cdab0d87e9 (diff)
downloadmpv-9c8445f5f95144b5940d8e7677b9d46443aa8bc8.tar.bz2
mpv-9c8445f5f95144b5940d8e7677b9d46443aa8bc8.tar.xz
Get rid of TTY_DEV_NAME #define to lessen differences to vo_fbdev.c.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@27996 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'libvo')
-rw-r--r--libvo/vo_wii.c11
1 files changed, 5 insertions, 6 deletions
diff --git a/libvo/vo_wii.c b/libvo/vo_wii.c
index 9252b840df..4b1ad5e765 100644
--- a/libvo/vo_wii.c
+++ b/libvo/vo_wii.c
@@ -55,7 +55,6 @@
#include "mp_msg.h"
#define WII_DEV_NAME "/dev/fb0"
-#define TTY_DEV_NAME "/dev/tty"
#define FB_PIXEL_SIZE 2
static const vo_info_t info = {
@@ -109,8 +108,8 @@ static int fb_preinit(int reset)
}
fb_orig_vinfo = fb_vinfo;
- if ((fb_tty_fd = open(TTY_DEV_NAME, O_RDWR)) < 0) {
- mp_msg(MSGT_VO, MSGL_ERR, "notice: Can't open %s: %s\n", TTY_DEV_NAME, strerror(errno));
+ if ((fb_tty_fd = open("/dev/tty", O_RDWR)) < 0) {
+ mp_msg(MSGT_VO, MSGL_ERR, "notice: Can't open /dev/tty: %s\n", strerror(errno));
goto err_out_fd;
}
@@ -229,12 +228,12 @@ static int config(uint32_t width, uint32_t height, uint32_t d_width,
for (temp = 0; temp < fb_size; temp += 4)
memcpy(frame_buffer + temp, (void *) &black, 4);
- if (vt_doit && (vt_fd = open(TTY_DEV_NAME, O_WRONLY)) == -1) {
- mp_msg(MSGT_VO, MSGL_ERR, "Can't open %s: %s\n", TTY_DEV_NAME, strerror(errno));
+ if (vt_doit && (vt_fd = open("/dev/tty", O_WRONLY)) == -1) {
+ mp_msg(MSGT_VO, MSGL_ERR, "can't open /dev/tty: %s\n", strerror(errno));
vt_doit = 0;
}
if (vt_doit && !(vt_fp = fdopen(vt_fd, "w"))) {
- mp_msg(MSGT_VO, MSGL_ERR, "Can't fdopen %s: %s\n", TTY_DEV_NAME, strerror(errno));
+ mp_msg(MSGT_VO, MSGL_ERR, "can't fdopen /dev/tty: %s\n", strerror(errno));
vt_doit = 0;
}