From de588448df1c5d9953914a4f217e0e5d0cba80d3 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Wed, 29 Oct 2008 16:17:21 +0100 Subject: 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. --- src/decoder/mp3_plugin.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/decoder') 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 && -- cgit v1.2.3