aboutsummaryrefslogtreecommitdiffstats
path: root/src/decoder/flac_plugin.c
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2008-10-26 20:56:46 +0100
committerMax Kellermann <max@duempel.org>2008-10-26 20:56:46 +0100
commit5c19776f2fc1416dab1da2f2baae9a0c764df965 (patch)
tree828f8f768be17f053e12fc38f2a7593e0a9b77b5 /src/decoder/flac_plugin.c
parent464b6117721056e72c79824a298caf53eb5cd452 (diff)
downloadmpd-5c19776f2fc1416dab1da2f2baae9a0c764df965.tar.gz
mpd-5c19776f2fc1416dab1da2f2baae9a0c764df965.tar.xz
mpd-5c19776f2fc1416dab1da2f2baae9a0c764df965.zip
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).
Diffstat (limited to 'src/decoder/flac_plugin.c')
-rw-r--r--src/decoder/flac_plugin.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/decoder/flac_plugin.c b/src/decoder/flac_plugin.c
index f65fef9b9..90313f8f6 100644
--- a/src/decoder/flac_plugin.c
+++ b/src/decoder/flac_plugin.c
@@ -52,9 +52,8 @@ static flac_seek_status flacSeek(mpd_unused const flac_decoder * flacDec,
{
FlacData *data = (FlacData *) fdata;
- if (input_stream_seek(data->inStream, offset, SEEK_SET) < 0) {
+ if (!input_stream_seek(data->inStream, offset, SEEK_SET))
return flac_seek_status_error;
- }
return flac_seek_status_ok;
}