[MPlayer-cvslog] r27995 - trunk/libvo/vo_wii.c
diego
subversion at mplayerhq.hu
Sun Nov 23 14:51:16 CET 2008
Author: diego
Date: Sun Nov 23 14:51:16 2008
New Revision: 27995
Log:
Merge another if condition check to lessen differences to vo_fbdev.c.
Modified:
trunk/libvo/vo_wii.c
Modified: trunk/libvo/vo_wii.c
==============================================================================
--- trunk/libvo/vo_wii.c (original)
+++ trunk/libvo/vo_wii.c Sun Nov 23 14:51:16 2008
@@ -229,8 +229,7 @@ static int config(uint32_t width, uint32
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;
}
More information about the MPlayer-cvslog
mailing list