[MPlayer-dev-eng] [PATCH] more informative cpudetect.c
Gabucino
gabucino at mplayerhq.hu
Mon Feb 16 13:46:13 CET 2004
I propose the following patch for inclusion. Current MPlayer doesn't print
any CPU info if the host isn't x86. This hinders debugging.
With this patch:
bash-2.05$ mplayer
MPlayer dev-CVS-040214-20:18-2.95.3 (C) 2000-2004 MPlayer Team
CPU: Digital VAX
Reading config file /usr/local/etc/mplayer/mplayer.conf: No such file or directory
Reading config file /home/gabucino/.mplayer/config: No such file or directory
Reading /home/gabucino/.mplayer/codecs.conf: Can't open '/home/gabucino/.mplayer/codecs.conf': No such file or directory
Reading /usr/local/etc/mplayer/codecs.conf: Can't open '/usr/local/etc/mplayer/codecs.conf': No such file or directory
Using built-in default codecs.conf.
Usage: mplayer [options] [url|path/]filename
Basic options: (complete list in the man page)
...
--
Gabucino
MPlayer Core Team
-------------- next part --------------
Index: cpudetect.c
===================================================================
RCS file: /cvsroot/mplayer/main/cpudetect.c,v
retrieving revision 1.31
diff -u -r1.31 cpudetect.c
--- cpudetect.c 28 Sep 2003 01:45:54 -0000 1.31
+++ cpudetect.c 16 Feb 2004 12:44:16 -0000
@@ -569,5 +569,50 @@
#endif /* SYS_DARWIN */
mp_msg(MSGT_CPUDETECT,MSGL_INFO,"AltiVec %sfound\n", (caps->hasAltiVec ? "" : "not "));
#endif /* HAVE_ALTIVEC */
-}
+
#endif /* !ARCH_X86 */
+
+#ifdef ARCH_IA64
+ mp_msg(MSGT_CPUDETECT,MSGL_INFO,"CPU: Intel Itanium\n");
+#endif
+
+#ifdef ARCH_X86_64
+ mp_msg(MSGT_CPUDETECT,MSGL_INFO,"CPU: Advanced Micro Devices 64-bit CPU\n");
+#endif
+
+#ifdef ARCH_SPARC
+ mp_msg(MSGT_CPUDETECT,MSGL_INFO,"CPU: Sun Sparc\n");
+#endif
+
+#ifdef ARCH_ARMV4L
+ mp_msg(MSGT_CPUDETECT,MSGL_INFO,"CPU: ARM\n");
+#endif
+
+#ifdef ARCH_POWERPC
+ mp_msg(MSGT_CPUDETECT,MSGL_INFO,"CPU: PowerPC\n");
+#endif
+
+#ifdef ARCH_ALPHA
+ mp_msg(MSGT_CPUDETECT,MSGL_INFO,"CPU: Digital Alpha\n");
+#endif
+
+#ifdef ARCH_SGI_MIPS
+ mp_msg(MSGT_CPUDETECT,MSGL_INFO,"CPU: SGI MIPS\n");
+#endif
+
+#ifdef ARCH_PA_RISC
+ mp_msg(MSGT_CPUDETECT,MSGL_INFO,"CPU: Hewlett-Packard PA-RISC\n");
+#endif
+
+#ifdef ARCH_S390
+ mp_msg(MSGT_CPUDETECT,MSGL_INFO,"CPU: IBM S/390\n");
+#endif
+
+#ifdef ARCH_S390X
+ mp_msg(MSGT_CPUDETECT,MSGL_INFO,"CPU: IBM S/390X\n");
+#endif
+
+#ifdef ARCH_VAX
+ mp_msg(MSGT_CPUDETECT,MSGL_INFO, "CPU: Digital VAX\n" );
+#endif
+}
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 232 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/mplayer-dev-eng/attachments/20040216/2cbb8084/attachment.pgp>
More information about the MPlayer-dev-eng
mailing list