# HG changeset patch # User diego # Date 1227448276 0 # Node ID 98878b83ff23b175ea84ceb1d9398a316c9078af # Parent 68854212bd042e9341e8a90832f0f1aabbb68fee Merge another if condition check to lessen differences to vo_fbdev.c. diff -r 68854212bd04 -r 98878b83ff23 libvo/vo_wii.c --- a/libvo/vo_wii.c Sun Nov 23 13:42:41 2008 +0000 +++ b/libvo/vo_wii.c Sun Nov 23 13:51:16 2008 +0000 @@ -229,8 +229,7 @@ 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; }