Mercurial > mplayer.hg
changeset 27960:68854212bd04
Merge if condition check to lessen differences to vo_fbdev.c.
author | diego |
---|---|
date | Sun, 23 Nov 2008 13:42:41 +0000 |
parents | 61c91710657a |
children | 98878b83ff23 |
files | libvo/vo_wii.c |
diffstat | 1 files changed, 1 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- 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; }