[MPlayer-cvslog] r18695 - trunk/libvo/vo_s3fb.c

gpoirier subversion at mplayerhq.hu
Tue Jun 13 10:00:48 CEST 2006


Author: gpoirier
Date: Tue Jun 13 10:00:48 2006
New Revision: 18695

Modified:
   trunk/libvo/vo_s3fb.c

Log:
Fix a condition as suggested by Rich.
Although what was in the code was working in practice it was not formally correct.


Modified: trunk/libvo/vo_s3fb.c
==============================================================================
--- trunk/libvo/vo_s3fb.c	(original)
+++ trunk/libvo/vo_s3fb.c	Tue Jun 13 10:00:48 2006
@@ -270,7 +270,7 @@
   smem = mmap(0, fb_finfo.smem_len, PROT_READ | PROT_WRITE, MAP_SHARED, fd, 0);
   sreg = fb_finfo.smem_start;
 
-  if((long)smem == -1) {
+  if(smem == (void *)-1) {
     mp_msg(MSGT_VO, MSGL_FATAL, "s3fb: Couldn't map memory areas: %s\n", strerror(errno));
     smem = NULL;
     close(fd);



More information about the MPlayer-cvslog mailing list