decoder_thread: create GError for mapper failure
Fixes crash.
This commit is contained in:
parent
efccb6ac82
commit
c035910df9
@ -462,6 +462,9 @@ decoder_run(struct decoder_control *dc)
|
|||||||
|
|
||||||
if (uri == NULL) {
|
if (uri == NULL) {
|
||||||
dc->state = DECODE_STATE_ERROR;
|
dc->state = DECODE_STATE_ERROR;
|
||||||
|
dc->error = g_error_new(decoder_quark(), 0,
|
||||||
|
"Failed to map song");
|
||||||
|
|
||||||
decoder_command_finished_locked(dc);
|
decoder_command_finished_locked(dc);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user