diff options
author | Max Kellermann <max@duempel.org> | 2012-08-15 17:56:06 +0200 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2012-08-15 17:57:55 +0200 |
commit | c035910df9ede3c6c596da2856bcb1485a3bc12c (patch) | |
tree | bf665d3b22f2c0c539f4378b85abe61e5cfd51a1 /src | |
parent | efccb6ac82e6ed03278eab3e2edb995790779ddc (diff) | |
download | mpd-c035910df9ede3c6c596da2856bcb1485a3bc12c.tar.gz mpd-c035910df9ede3c6c596da2856bcb1485a3bc12c.tar.xz mpd-c035910df9ede3c6c596da2856bcb1485a3bc12c.zip |
decoder_thread: create GError for mapper failure
Fixes crash.
Diffstat (limited to 'src')
-rw-r--r-- | src/decoder_thread.c | 3 |
1 files changed, 3 insertions, 0 deletions
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; } |