changeset 27961:98878b83ff23

Merge another if condition check to lessen differences to vo_fbdev.c.
author diego
date Sun, 23 Nov 2008 13:51:16 +0000
parents 68854212bd04
children c9204a95ead1
files libvo/vo_wii.c
diffstat 1 files changed, 1 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- 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;
   }