aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2011-01-16 17:52:03 +0100
committerMax Kellermann <max@duempel.org>2011-01-16 17:52:03 +0100
commit18b30b50197261a8f062f44b5e8b24b21fb2b280 (patch)
tree992e53b9466a1f09c07c23acc7ff59dd908c3e91
parent24d51b9d14b455652aa99d0e05117e5a1ec19d0f (diff)
downloadmpd-18b30b50197261a8f062f44b5e8b24b21fb2b280.tar.gz
mpd-18b30b50197261a8f062f44b5e8b24b21fb2b280.tar.xz
mpd-18b30b50197261a8f062f44b5e8b24b21fb2b280.zip
decoder_thread: fix assertion failure at song end
Don't finish the current command twice. This bug was never noticed, but was revealed by a new assertion check.
Diffstat (limited to '')
-rw-r--r--src/decoder_thread.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/decoder_thread.c b/src/decoder_thread.c
index 5b05896e4..0dac5f9da 100644
--- a/src/decoder_thread.c
+++ b/src/decoder_thread.c
@@ -443,6 +443,7 @@ decoder_run(struct decoder_control *dc)
if (uri == NULL) {
dc->state = DECODE_STATE_ERROR;
+ decoder_command_finished_locked(dc);
return;
}
@@ -475,8 +476,6 @@ decoder_task(gpointer arg)
case DECODE_COMMAND_SEEK:
decoder_run(dc);
-
- decoder_command_finished_locked(dc);
break;
case DECODE_COMMAND_STOP: