[MPlayer-cvslog] r27998 - trunk/libvo/vo_wii.c

diego subversion at mplayerhq.hu
Sun Nov 23 15:32:39 CET 2008


Author: diego
Date: Sun Nov 23 15:32:39 2008
New Revision: 27998

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 15:32:39 2008
@@ -210,10 +210,8 @@ static int config(uint32_t width, uint32
   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;
   }



More information about the MPlayer-cvslog mailing list