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:
parent
24d51b9d14
commit
18b30b5019
@ -443,6 +443,7 @@ decoder_run(struct decoder_control *dc)
|
|||||||
|
|
||||||
if (uri == NULL) {
|
if (uri == NULL) {
|
||||||
dc->state = DECODE_STATE_ERROR;
|
dc->state = DECODE_STATE_ERROR;
|
||||||
|
decoder_command_finished_locked(dc);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -475,8 +476,6 @@ decoder_task(gpointer arg)
|
|||||||
|
|
||||||
case DECODE_COMMAND_SEEK:
|
case DECODE_COMMAND_SEEK:
|
||||||
decoder_run(dc);
|
decoder_run(dc);
|
||||||
|
|
||||||
decoder_command_finished_locked(dc);
|
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case DECODE_COMMAND_STOP:
|
case DECODE_COMMAND_STOP:
|
||||||
|
Loading…
Reference in New Issue
Block a user