aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2012-08-15 17:56:12 +0200
committerMax Kellermann <max@duempel.org>2012-08-15 17:58:09 +0200
commit784d666a8e0c4afae45f18b68cdac7734962520c (patch)
treeb85a2437acbef8ee10700a140d2f5a207e49e7ad /src
parentc035910df9ede3c6c596da2856bcb1485a3bc12c (diff)
downloadmpd-784d666a8e0c4afae45f18b68cdac7734962520c.tar.gz
mpd-784d666a8e0c4afae45f18b68cdac7734962520c.tar.xz
mpd-784d666a8e0c4afae45f18b68cdac7734962520c.zip
decoder_control: add assertion to dc_get_error()
Diffstat (limited to '')
-rw-r--r--src/decoder_control.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/decoder_control.h b/src/decoder_control.h
index 164875ae0..743c8fb58 100644
--- a/src/decoder_control.h
+++ b/src/decoder_control.h
@@ -207,6 +207,7 @@ dc_get_error(const struct decoder_control *dc)
{
assert(dc != NULL);
assert(dc->command == DECODE_COMMAND_NONE);
+ assert(dc->state != DECODE_STATE_ERROR || dc->error != NULL);
return dc->state == DECODE_STATE_ERROR
? g_error_copy(dc->error)