[vlc-devel] commit: Make plugin cache name dependent on CPU capabilities ( Rémi Denis-Courmont )

git version control git at videolan.org
Sun Jan 10 11:44:24 CET 2010


vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Sun Jan 10 12:39:48 2010 +0200| [417eadba3f1c4afbc8077fdca4fc06fca8e8bb1d] | committer: Rémi Denis-Courmont 

Make plugin cache name dependent on CPU capabilities

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=417eadba3f1c4afbc8077fdca4fc06fca8e8bb1d
---

 src/modules/cache.c |    5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/src/modules/cache.c b/src/modules/cache.c
index 74d1258..dbb7f9d 100644
--- a/src/modules/cache.c
+++ b/src/modules/cache.c
@@ -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()
 
 
 /*****************************************************************************




More information about the vlc-devel mailing list