decoder_thread: create GError for mapper failure

Fixes crash.
This commit is contained in:
Max Kellermann 2012-08-15 17:56:06 +02:00
parent efccb6ac82
commit c035910df9

View File

@ -462,6 +462,9 @@ decoder_run(struct decoder_control *dc)
if (uri == NULL) {
dc->state = DECODE_STATE_ERROR;
dc->error = g_error_new(decoder_quark(), 0,
"Failed to map song");
decoder_command_finished_locked(dc);
return;
}