summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar waker <wakeroid@gmail.com>2011-05-23 19:39:35 +0200
committerGravatar waker <wakeroid@gmail.com>2011-05-23 19:43:42 +0200
commitcda103d91de104155a98220ac0dad217708cf5da (patch)
tree24f3c5eba145af0023170dadb9c74d99ca0b2291
parent886dca87c46502de6dc7ca5a78acfb8e1b259890 (diff)
few android fixes
-rw-r--r--plugins.c6
-rw-r--r--streamer.h6
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