[MPlayer-cvslog] r18820 - trunk/cpudetect.c

gpoirier subversion at mplayerhq.hu
Sun Jun 25 19:37:58 CEST 2006


Author: gpoirier
Date: Sun Jun 25 19:37:58 2006
New Revision: 18820

Modified:
   trunk/cpudetect.c

Log:
Typo: use ptmpstr instead of tmpstr to strip leading spaces + add 
comment
Patch by Zuxy Meng ##zuxy P meng AH gmail P com##
--Cette ligne, et les 
suivantes ci-dessous, seront ignorées--

M    cpudetect.c


Modified: trunk/cpudetect.c
==============================================================================
--- trunk/cpudetect.c	(original)
+++ trunk/cpudetect.c	Sun Jun 25 19:37:58 2006
@@ -147,9 +147,9 @@
 		if(cl_size) caps->cl_size = cl_size;
 
 		ptmpstr=tmpstr=GetCpuFriendlyName(regs, regs2);
-		while(*ptmpstr == ' ')
+		while(*ptmpstr == ' ')        // strip leading spaces
 		    ptmpstr++;
-		mp_msg(MSGT_CPUDETECT,MSGL_INFO,"CPU: %s ",tmpstr);
+		mp_msg(MSGT_CPUDETECT,MSGL_INFO,"CPU: %s ", ptmpstr);
 		free(tmpstr);
 		mp_msg(MSGT_CPUDETECT,MSGL_INFO,"(Family: %d, Model: %d, Stepping: %d)\n",
 		    caps->cpuType, caps->cpuModel, caps->cpuStepping);



More information about the MPlayer-cvslog mailing list