summaryrefslogtreecommitdiff
path: root/streamer.c
diff options
context:
space:
mode:
authorGravatar waker <wakeroid@gmail.com>2010-12-30 21:50:32 +0100
committerGravatar waker <wakeroid@gmail.com>2010-12-30 21:50:32 +0100
commit9c4051a94ed3827c5d5137636692a8b70b7593d4 (patch)
treef18a152896500353ded7479b6a3e49dde84953e4 /streamer.c
parent2d0b6eda861e5bfcdce1ca43afb013d15b9d73b5 (diff)
fixed dsp parameter setting from gui
Diffstat (limited to 'streamer.c')
-rw-r--r--streamer.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/streamer.c b/streamer.c
index 7dcd28ad..41b22746 100644
--- a/streamer.c
+++ b/streamer.c
@@ -1822,7 +1822,6 @@ streamer_set_dsp_chain (ddb_dsp_context_t *chain) {
ddb_dsp_context_t *tail = NULL;
while (chain) {
- printf ("copy %s\n", chain->plugin->plugin.id);
ddb_dsp_context_t *new = dsp_clone (chain);
if (tail) {
tail->next = new;
@@ -1839,6 +1838,11 @@ streamer_set_dsp_chain (ddb_dsp_context_t *chain) {
char fname[PATH_MAX];
snprintf (fname, sizeof (fname), "%s/dspconfig", plug_get_config_dir ());
streamer_dsp_chain_save (fname, dsp_chain);
+ streamer_reset (1);
mutex_unlock (decodemutex);
+ DB_output_t *output = plug_get_output ();
+ if (playing_track && output->state () != OUTPUT_STATE_STOPPED) {
+ deadbeef->streamer_seek (playpos);
+ }
}