summaryrefslogtreecommitdiff
path: root/apps
diff options
context:
space:
mode:
Diffstat (limited to 'apps')
-rw-r--r--apps/codecs.c4
-rw-r--r--apps/metadata.h6
2 files changed, 8 insertions, 2 deletions
diff --git a/apps/codecs.c b/apps/codecs.c
index 249cd8f5c1..cd4a9d50eb 100644
--- a/apps/codecs.c
+++ b/apps/codecs.c
@@ -169,8 +169,8 @@ struct codec_api ci = {
169 169
170void codec_get_full_path(char *path, const char *codec_root_fn) 170void codec_get_full_path(char *path, const char *codec_root_fn)
171{ 171{
172 snprintf(path, MAX_PATH-1, "%s/%s." CODEC_EXTENSION, 172 snprintf(path, MAX_PATH-1, CODECS_DIR "/" CODEC_PREFIX "%s."
173 CODECS_DIR, codec_root_fn); 173 CODEC_EXTENSION, codec_root_fn);
174} 174}
175 175
176/* Returns pointer to and size of free codec RAM. Aligns to CACHEALIGN_SIZE. */ 176/* Returns pointer to and size of free codec RAM. Aligns to CACHEALIGN_SIZE. */
diff --git a/apps/metadata.h b/apps/metadata.h
index 3499e13f47..a191e43219 100644
--- a/apps/metadata.h
+++ b/apps/metadata.h
@@ -107,7 +107,13 @@ enum
107}; 107};
108 108
109#if CONFIG_CODEC == SWCODEC 109#if CONFIG_CODEC == SWCODEC
110#if (CONFIG_PLATFORM & PLATFORM_ANDROID)
111#define CODEC_EXTENSION "so"
112#define CODEC_PREFIX "lib"
113#else
110#define CODEC_EXTENSION "codec" 114#define CODEC_EXTENSION "codec"
115#define CODEC_PREFIX ""
116#endif
111 117
112#ifdef HAVE_RECORDING 118#ifdef HAVE_RECORDING
113enum rec_format_indexes 119enum rec_format_indexes