From c035910df9ede3c6c596da2856bcb1485a3bc12c Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Wed, 15 Aug 2012 17:56:06 +0200 Subject: decoder_thread: create GError for mapper failure Fixes crash. --- src/decoder_thread.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/decoder_thread.c b/src/decoder_thread.c index 11d96b35c..46349f53b 100644 --- a/src/decoder_thread.c +++ b/src/decoder_thread.c @@ -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; } -- cgit v1.2.3