From 5c19776f2fc1416dab1da2f2baae9a0c764df965 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Sun, 26 Oct 2008 20:56:46 +0100 Subject: input_stream: use "bool" instead of "int" For boolean values and success flags, use bool instead of integer (1/0 for true/false, 0/-1 for success/failure). --- src/decoder_thread.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/decoder_thread.c') diff --git a/src/decoder_thread.c b/src/decoder_thread.c index 3c56dfbcb..68dbd4bb1 100644 --- a/src/decoder_thread.c +++ b/src/decoder_thread.c @@ -43,7 +43,7 @@ static void decodeStart(void) song_get_url(song, path_max_fs); dc.current_song = dc.next_song; /* NEED LOCK */ - if (input_stream_open(&inStream, path_max_fs) < 0) { + if (!input_stream_open(&inStream, path_max_fs)) { dc.error = DECODE_ERROR_FILE; goto stop_no_close; } -- cgit v1.2.3