aboutsummaryrefslogtreecommitdiffstats
path: root/src/decoder/mp3_plugin.c
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2008-10-29 16:17:21 +0100
committerMax Kellermann <max@duempel.org>2008-10-29 16:17:21 +0100
commitde588448df1c5d9953914a4f217e0e5d0cba80d3 (patch)
treee18ba72d9699037c29b005345383d0d2981f1bad /src/decoder/mp3_plugin.c
parent6158858f82843720544ee7d1b49fd2c75e0a6b1a (diff)
downloadmpd-de588448df1c5d9953914a4f217e0e5d0cba80d3.tar.gz
mpd-de588448df1c5d9953914a4f217e0e5d0cba80d3.tar.xz
mpd-de588448df1c5d9953914a4f217e0e5d0cba80d3.zip
mp3: return from mp3_synth_and_send() on any command
Previously, the function would only return when a STOP was issued. It makes more sense to consider all possible commands.
Diffstat (limited to 'src/decoder/mp3_plugin.c')
-rw-r--r--src/decoder/mp3_plugin.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/decoder/mp3_plugin.c b/src/decoder/mp3_plugin.c
index 72b03c8d8..0f9376b10 100644
--- a/src/decoder/mp3_plugin.c
+++ b/src/decoder/mp3_plugin.c
@@ -905,7 +905,7 @@ mp3_send_pcm(struct mp3_data *data, unsigned i, unsigned pcm_length,
data->elapsed_time,
data->bit_rate / 1000,
replay_gain_info);
- if (cmd == DECODE_COMMAND_STOP)
+ if (cmd != DECODE_COMMAND_NONE)
return cmd;
}
@@ -971,7 +971,7 @@ mp3_synth_and_send(struct mp3_data *data, ReplayGainInfo *replay_gain_info)
}
cmd = mp3_send_pcm(data, i, pcm_length, replay_gain_info);
- if (cmd == DECODE_COMMAND_STOP)
+ if (cmd != DECODE_COMMAND_NONE)
return cmd;
if (data->drop_end_samples &&