summaryrefslogtreecommitdiffstats
path: root/libaf/af.h
diff options
context:
space:
mode:
Diffstat (limited to 'libaf/af.h')
-rw-r--r--libaf/af.h9
1 files changed, 8 insertions, 1 deletions
diff --git a/libaf/af.h b/libaf/af.h
index 13f3f6cf76..0a3c6b8030 100644
--- a/libaf/af.h
+++ b/libaf/af.h
@@ -22,10 +22,17 @@
#include <stdio.h>
#include "config.h"
-#include "af_mp.h"
#include "control.h"
#include "af_format.h"
#include "mp_msg.h"
+#include "cpudetect.h"
+
+/* Set the initialization type from mplayers cpudetect */
+#ifdef AF_INIT_TYPE
+#undef AF_INIT_TYPE
+#define AF_INIT_TYPE \
+ ((gCpuCaps.has3DNow || gCpuCaps.hasSSE)?AF_INIT_FAST:AF_INIT_SLOW)
+#endif
struct af_instance_s;