From cda103d91de104155a98220ac0dad217708cf5da Mon Sep 17 00:00:00 2001 From: waker Date: Mon, 23 May 2011 19:39:35 +0200 Subject: few android fixes --- plugins.c | 6 +++--- streamer.h | 6 ++++++ 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/plugins.c b/plugins.c index e4198b90..fcf14720 100644 --- a/plugins.c +++ b/plugins.c @@ -558,7 +558,7 @@ load_plugin (const char *plugdir, char *d_name, int l) { if (!handle) { //trace ("dlopen error: %s\n", dlerror ()); #ifdef ANDROID - break; + return -1; #else strcpy (fullname + strlen(fullname) - 3, ".fallback.so"); trace ("trying %s...\n", fullname); @@ -740,9 +740,9 @@ plug_load_all (void) { trace ("\033[0;31mDISABLE_VERSIONCHECK=1! do not distribute!\033[0;m\n"); #endif -#ifndef ANDROID const char *dirname = deadbeef->get_plugin_dir (); +#ifndef ANDROID char *xdg_local_home = getenv ("XDG_LOCAL_HOME"); char xdg_plugin_dir[1024]; @@ -783,7 +783,7 @@ plug_load_all (void) { #ifdef ANDROID char plugin_path[1000]; - strncpy (plugin_path, conf_get_str ("android.plugin_path", ""), sizeof (plugin_path)-1); + strncpy (plugin_path, conf_get_str_fast ("android.plugin_path", ""), sizeof (plugin_path)-1); plugin_path[sizeof(plugin_path)-1] = 0; char *p = plugin_path; while (*p) { diff --git a/streamer.h b/streamer.h index c06fdf8b..a0414e46 100644 --- a/streamer.h +++ b/streamer.h @@ -121,4 +121,10 @@ streamer_dsp_refresh (void); void streamer_get_output_format (ddb_waveformat_t *fmt); +void +streamer_dsp_postinit (void); + +int +streamer_dsp_chain_save (const char *fname, ddb_dsp_context_t *chain); + #endif // __STREAMER_H -- cgit v1.2.3