# HG changeset patch # User diego # Date 1227447761 0 # Node ID 68854212bd042e9341e8a90832f0f1aabbb68fee # Parent 61c91710657ad04e19d3e8ce073deddc9e26e7bc Merge if condition check to lessen differences to vo_fbdev.c. diff -r 61c91710657a -r 68854212bd04 libvo/vo_wii.c --- a/libvo/vo_wii.c Sun Nov 23 13:41:57 2008 +0000 +++ b/libvo/vo_wii.c Sun Nov 23 13:42:41 2008 +0000 @@ -234,9 +234,7 @@ mp_msg(MSGT_VO, MSGL_ERR, "Can't open %s: %s\n", TTY_DEV_NAME, strerror(errno)); vt_doit = 0; } - - vt_fp = fdopen(vt_fd, "w"); - if (vt_doit && !vt_fp) { + 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)); vt_doit = 0; }