From c6af321ba74b26fa2ef7f0d334b609cdab0d87e9 Mon Sep 17 00:00:00 2001 From: diego Date: Sun, 23 Nov 2008 13:51:16 +0000 Subject: [PATCH] Merge another if condition check to lessen differences to vo_fbdev.c. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@27995 b3059339-0415-0410-9bf9-f77b7e298cf2 --- libvo/vo_wii.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/libvo/vo_wii.c b/libvo/vo_wii.c index 374d99d57d..9252b840df 100644 --- a/libvo/vo_wii.c +++ b/libvo/vo_wii.c @@ -229,8 +229,7 @@ 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); - vt_fd = open(TTY_DEV_NAME, O_WRONLY); - if (vt_doit && vt_fd == -1) { + 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)); vt_doit = 0; }