From 18b30b50197261a8f062f44b5e8b24b21fb2b280 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Sun, 16 Jan 2011 17:52:03 +0100 Subject: 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. --- src/decoder_thread.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/decoder_thread.c') 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: -- cgit v1.2.3