Fixe a bug in detecting p4 types correctly which could cause

mplayer to crash.

PR:		ports/50673
Submitted by:	Thomas E. Zander <riggs@rrr.de> (maintainer)
Suggested by:	Matthew Emmerton <matt@gsicomp.on.ca>
This commit is contained in:
Norikatsu Shigemura 2003-04-07 16:18:16 +00:00
parent 65560d6b9d
commit c054f87ced
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=78526
3 changed files with 23 additions and 1 deletions

View file

@ -149,7 +149,7 @@
PORTNAME= mplayer
PORTVERSION= 0.90.0.105
PORTREVISION= 1
PORTREVISION= 2
CATEGORIES= multimedia audio ipv6
MASTER_SITES= http://www1.mplayerhq.hu/MPlayer/releases/ \
http://www2.mplayerhq.hu/MPlayer/releases/ \

View file

@ -0,0 +1,11 @@
--- cpudetect.h.orig Sun Apr 6 01:28:52 2003
+++ cpudetect.h Sun Apr 6 01:29:06 2003
@@ -5,6 +5,8 @@
#define CPUTYPE_I486 4
#define CPUTYPE_I586 5
#define CPUTYPE_I686 6
+#define CPUTYPE_I686_7 7
+#define CPUTYPE_I686_8 8
typedef struct cpucaps_s {
int cpuType;

View file

@ -0,0 +1,11 @@
--- loader/win32.c.orig Sun Apr 6 01:29:17 2003
+++ loader/win32.c Sun Apr 6 01:29:30 2003
@@ -931,6 +931,8 @@
switch(gCpuCaps.cpuType)
{
+ case CPUTYPE_I686_8:
+ case CPUTYPE_I686_7:
case CPUTYPE_I686:
case CPUTYPE_I586:
cachedsi.dwProcessorType = PROCESSOR_INTEL_PENTIUM;