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.
This commit is contained in:
Max Kellermann 2011-01-16 17:52:03 +01:00
parent 24d51b9d14
commit 18b30b5019

View File

@ -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: