diff options
author | diego <diego@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2008-11-23 14:32:39 +0000 |
---|---|---|
committer | diego <diego@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2008-11-23 14:32:39 +0000 |
commit | 9aa2edf9d103e2bc3b5e2ea18cdd5105d8232ec9 (patch) | |
tree | db37f0d96f97d8ba5748a1eceb6a9bd7034b9b1c /libvo/vo_wii.c | |
parent | df58b1815f4aa52bf65e843935813730976e5206 (diff) | |
download | mpv-9aa2edf9d103e2bc3b5e2ea18cdd5105d8232ec9.tar.bz2 mpv-9aa2edf9d103e2bc3b5e2ea18cdd5105d8232ec9.tar.xz |
Merge another if condition check to lessen differences to vo_fbdev.c.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@27998 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'libvo/vo_wii.c')
-rw-r--r-- | libvo/vo_wii.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/libvo/vo_wii.c b/libvo/vo_wii.c index f42bde0fd2..a4e8095874 100644 --- a/libvo/vo_wii.c +++ b/libvo/vo_wii.c @@ -210,10 +210,8 @@ static int config(uint32_t width, uint32_t height, uint32_t d_width, fb_line_len = fb_finfo.line_length; fb_size = fb_finfo.smem_len; frame_buffer = NULL; - - frame_buffer = (uint8_t *) mmap(0, fb_size, PROT_READ | PROT_WRITE, - MAP_SHARED, fb_dev_fd, 0); - if (frame_buffer == (uint8_t *) -1) { + if ((frame_buffer = (uint8_t *) mmap(0, fb_size, PROT_READ | PROT_WRITE, + MAP_SHARED, fb_dev_fd, 0)) == (uint8_t *) -1) { mp_msg(MSGT_VO, MSGL_ERR, "Can't mmap %s: %s\n", WII_DEV_NAME, strerror(errno)); return 1; } |