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).
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user