aboutsummaryrefslogtreecommitdiffstats
path: root/src/decoder/aac_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/aac_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 '')
-rw-r--r--src/decoder/aac_plugin.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/decoder/aac_plugin.c b/src/decoder/aac_plugin.c
index 017844201..3e8468e9e 100644
--- a/src/decoder/aac_plugin.c
+++ b/src/decoder/aac_plugin.c
@@ -257,7 +257,7 @@ static float getAacFloatTotalTime(char *file)
struct input_stream inStream;
long bread;
- if (input_stream_open(&inStream, file) < 0)
+ if (!input_stream_open(&inStream, file))
return -1;
initAacBuffer(&b, NULL, &inStream);
@@ -461,7 +461,7 @@ static int aac_decode(struct decoder * mpd_decoder, char *path)
if ((totalTime = getAacFloatTotalTime(path)) < 0)
return -1;
- if (input_stream_open(&inStream, path) < 0)
+ if (!input_stream_open(&inStream, path))
return -1;
initAacBuffer(&b, mpd_decoder, &inStream);