summaryrefslogtreecommitdiff
path: root/streamer.c
diff options
context:
space:
mode:
authorGravatar waker <wakeroid@gmail.com>2011-05-22 12:13:45 +0200
committerGravatar waker <wakeroid@gmail.com>2011-05-22 12:13:45 +0200
commit3a2bd3125cf0950f19d29e42ccceb492300ff13c (patch)
treeabc8f47826656a5efe00b7accd0167987dbc4d0d /streamer.c
parent89746d84af75e6454e647385856a8cf103da0321 (diff)
fixed regression in streamer dsp chain caused by adding pass-through feature
Diffstat (limited to 'streamer.c')
-rw-r--r--streamer.c9
1 files changed, 7 insertions, 2 deletions
diff --git a/streamer.c b/streamer.c
index ede20df5..e7e1678f 100644
--- a/streamer.c
+++ b/streamer.c
@@ -1713,8 +1713,13 @@ streamer_read_async (char *bytes, int size) {
// check if DSP can be passed through
ddb_dsp_context_t *dsp = dsp_chain;
while (dsp) {
- if (dsp->enabled && dsp->plugin->plugin.api_vminor >= 1) {
- if (dsp->plugin->pass_through && !dsp->plugin->pass_through (dsp, &dspfmt)) {
+ if (dsp->enabled) {
+ if (dsp->plugin->plugin.api_vminor >= 1) {
+ if (dsp->plugin->pass_through && !dsp->plugin->pass_through (dsp, &dspfmt)) {
+ break;
+ }
+ }
+ else {
break;
}
}