[Mplayer-cvslog] CVS: main/libvo vo_x11.c,1.85,1.86

Michael Niedermayer michael at mplayer.dev.hu
Thu Mar 21 20:23:29 CET 2002


Update of /cvsroot/mplayer/main/libvo
In directory mplayer:/var/tmp.root/cvs-serv13502

Modified Files:
	vo_x11.c 
Log Message:
print meaningfull error message instead of "hmm, arpi said that isnt used...


Index: vo_x11.c
===================================================================
RCS file: /cvsroot/mplayer/main/libvo/vo_x11.c,v
retrieving revision 1.85
retrieving revision 1.86
diff -u -r1.85 -r1.86
--- vo_x11.c	17 Mar 2002 15:11:44 -0000	1.85
+++ vo_x11.c	21 Mar 2002 19:23:20 -0000	1.86
@@ -410,12 +410,22 @@
 //   printf( "No support for non-native XImage byte order!\n" );
 //   return -1;
   }
-  
-  if((mode==MODE_BGR) == (myximage->byte_order == LSBFirst) )
-  {
-    printf("hmm, arpi said that isnt used, contact the developers, thats weird\n" );
+
+#ifdef WORDS_BIGENDIAN
+  if(mode==MODE_BGR && bpp!=32){
+    printf("BGR%d not supported, please contact the developers\n", bpp);
     return -1;
   }
+  if(mode==MODE_RGB && bpp==32){
+    printf("RGB32 not supported on big-endian systems, please contact the developers\n");
+    return -1;
+  }
+#else
+  if(mode==MODE_BGR){
+    printf("BGR not supported, please contact the developers\n");
+    return -1;
+  }
+#endif  
 
  saver_off(mDisplay);
  return 0;




More information about the MPlayer-cvslog mailing list