From ceb00f787e2e0ea149a411dc7f2e1102e458dfba Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Sat, 25 Apr 2009 15:07:22 +0200 Subject: decoder: added assertions on dc.pipe dc.pipe must be non-NULL while the decoder thread is running. Ensure that with a load of assertions. --- src/decoder_control.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/decoder_control.c') diff --git a/src/decoder_control.c b/src/decoder_control.c index 4e7ade22c..7aa80c2c6 100644 --- a/src/decoder_control.c +++ b/src/decoder_control.c @@ -60,6 +60,7 @@ static void dc_command_async(enum decoder_command cmd) void dc_start(struct notify *notify, struct song *song) { + assert(dc.pipe != NULL); assert(song != NULL); dc.next_song = song; @@ -69,6 +70,7 @@ dc_start(struct notify *notify, struct song *song) void dc_start_async(struct song *song) { + assert(dc.pipe != NULL); assert(song != NULL); dc.next_song = song; -- cgit v1.2.3