]> git.sesse.net Git - vlc/commitdiff
Make plugin cache name dependent on CPU capabilities
authorRémi Denis-Courmont <remi@remlab.net>
Sun, 10 Jan 2010 10:39:48 +0000 (12:39 +0200)
committerRémi Denis-Courmont <remi@remlab.net>
Sun, 10 Jan 2010 10:43:45 +0000 (12:43 +0200)
src/modules/cache.c

index 74d12589f48ae945836e1cd43e352705de805d60..dbb7f9dfd1d0da95f7047e7fca5f9297d476709b 100644 (file)
@@ -35,6 +35,7 @@
 #include <stdio.h>                                              /* sprintf() */
 #include <string.h>                                              /* strdup() */
 #include <vlc_plugin.h>
+#include <vlc_cpu.h>
 
 #ifdef HAVE_SYS_TYPES_H
 #   include <sys/types.h>
@@ -88,10 +89,10 @@ static int    CacheSaveConfig  ( module_t *, FILE * );
 
 /* Format string for the cache filename */
 #define CACHENAME_FORMAT \
-    "plugins-%.2zx%.2zx%.2"PRIx8".dat"
+    "plugins-%.2zx%.2zx%.2"PRIx8"-%x.dat"
 /* Magic for the cache filename */
 #define CACHENAME_VALUES \
-    sizeof(int), sizeof(void *), *(uint8_t *)&(uint16_t){ 0xbe1e }
+    sizeof(int), sizeof(void *), *(uint8_t *)&(uint16_t){ 0xbe1e }, vlc_CPU()
 
 
 /*****************************************************************************