[vlc-commits] Remove CPU capability from the plugin cache path
Rémi Denis-Courmont
git at videolan.org
Mon May 9 18:41:34 CEST 2011
vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Mon May 9 19:28:27 2011 +0300| [706a49d8abe7c092aec5a30d35f40b3471afabd1] | committer: Rémi Denis-Courmont
Remove CPU capability from the plugin cache path
The plugin cache does not depend on this anymore. It always contain all
plugins like it did in VLC versions <= 1.0. In theory, it could even be
generated at build-time if:
* the compilation is native, and
* the set of installed plugins is invariable.
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=706a49d8abe7c092aec5a30d35f40b3471afabd1
---
src/modules/cache.c | 5 ++---
1 files changed, 2 insertions(+), 3 deletions(-)
diff --git a/src/modules/cache.c b/src/modules/cache.c
index 4c4973b..f85bb97 100644
--- a/src/modules/cache.c
+++ b/src/modules/cache.c
@@ -35,7 +35,6 @@
#include <stdio.h> /* sprintf() */
#include <string.h> /* strdup() */
#include <vlc_plugin.h>
-#include <vlc_cpu.h>
#include <errno.h>
#include <sys/types.h>
@@ -63,10 +62,10 @@ static int CacheLoadConfig ( module_t *, FILE * );
/* Format string for the cache filename */
#define CACHENAME_FORMAT \
- "plugins-%.2zx%.2zx%.2"PRIx8"-%x.dat"
+ "plugins-%.2zx%.2zx%.2"PRIx8".dat"
/* Magic for the cache filename */
#define CACHENAME_VALUES \
- sizeof(int), sizeof(void *), *(uint8_t *)&(uint16_t){ 0xbe1e }, vlc_CPU()
+ sizeof(int), sizeof(void *), *(uint8_t *)&(uint16_t){ 0xbe1e }
#define CACHE_STRING "cache "PACKAGE_NAME" "PACKAGE_VERSION
More information about the vlc-commits
mailing list