From 1dccf216e69ccb3cb8a43198908f65f6698c280d Mon Sep 17 00:00:00 2001 From: mswitch Date: Sat, 23 Mar 2002 16:36:42 +0000 Subject: [PATCH] Disable prebuffering on athlons (3DNowEx) as the ones running at 266MHz bus speed has troubles with it... git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@5276 b3059339-0415-0410-9bf9-f77b7e298cf2 --- libvo/vo_dxr3.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/libvo/vo_dxr3.c b/libvo/vo_dxr3.c index 29cd591bad..cd1c68a531 100644 --- a/libvo/vo_dxr3.c +++ b/libvo/vo_dxr3.c @@ -78,6 +78,7 @@ #include "aspect.h" #include "../postproc/rgb2rgb.h" #include "../postproc/swscale.h" +#include "../cpudetect.h" /*#ifndef USE_LIBAVCODEC*/ # define USE_LIBFAME @@ -518,7 +519,7 @@ static uint32_t preinit(const char *arg) int fdflags = O_WRONLY; /* Open the control interface */ - if (arg && !strcmp("noprebuf", arg)) { + if ((arg && !strcmp("noprebuf", arg)) || gCpuCaps.has3DNowExt) { printf("VO: [dxr3] Disabling prebuffering.\n"); noprebuf = 1; fdflags |= O_NONBLOCK;