Commit 417eadba authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

Make plugin cache name dependent on CPU capabilities

parent 90e94ab5
...@@ -35,6 +35,7 @@ ...@@ -35,6 +35,7 @@
#include <stdio.h> /* sprintf() */ #include <stdio.h> /* sprintf() */
#include <string.h> /* strdup() */ #include <string.h> /* strdup() */
#include <vlc_plugin.h> #include <vlc_plugin.h>
#include <vlc_cpu.h>
#ifdef HAVE_SYS_TYPES_H #ifdef HAVE_SYS_TYPES_H
# include <sys/types.h> # include <sys/types.h>
...@@ -88,10 +89,10 @@ static int CacheSaveConfig ( module_t *, FILE * ); ...@@ -88,10 +89,10 @@ static int CacheSaveConfig ( module_t *, FILE * );
/* Format string for the cache filename */ /* Format string for the cache filename */
#define CACHENAME_FORMAT \ #define CACHENAME_FORMAT \
"plugins-%.2zx%.2zx%.2"PRIx8".dat" "plugins-%.2zx%.2zx%.2"PRIx8"-%x.dat"
/* Magic for the cache filename */ /* Magic for the cache filename */
#define CACHENAME_VALUES \ #define CACHENAME_VALUES \
sizeof(int), sizeof(void *), *(uint8_t *)&(uint16_t){ 0xbe1e } sizeof(int), sizeof(void *), *(uint8_t *)&(uint16_t){ 0xbe1e }, vlc_CPU()
/***************************************************************************** /*****************************************************************************
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment