diff options
author | Max Kellermann <max@duempel.org> | 2008-10-08 11:03:39 +0200 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2008-10-08 11:03:39 +0200 |
commit | b084bc28ede5d397e88a4e2bdad8c07a55069589 (patch) | |
tree | d61d58cc73ed7d591df05fee2f4a48682e8d9c8c /src/inputPlugins/oggflac_plugin.c | |
parent | 71351160b1b6fd4203f27f9159ae39a476483e1a (diff) | |
download | mpd-b084bc28ede5d397e88a4e2bdad8c07a55069589.tar.gz mpd-b084bc28ede5d397e88a4e2bdad8c07a55069589.tar.xz mpd-b084bc28ede5d397e88a4e2bdad8c07a55069589.zip |
use the "bool" data type instead of "int"
"bool" should be used in C99 programs for boolean values.
Diffstat (limited to 'src/inputPlugins/oggflac_plugin.c')
-rw-r--r-- | src/inputPlugins/oggflac_plugin.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/inputPlugins/oggflac_plugin.c b/src/inputPlugins/oggflac_plugin.c index ea36cb82b..3a2db5c03 100644 --- a/src/inputPlugins/oggflac_plugin.c +++ b/src/inputPlugins/oggflac_plugin.c @@ -283,14 +283,14 @@ static struct tag *oggflac_TagDup(char *file) return data.tag; } -static unsigned int oggflac_try_decode(InputStream * inStream) +static bool oggflac_try_decode(InputStream * inStream) { if (!inStream->seekable) /* we cannot seek after the detection, so don't bother checking */ - return 1; + return true; - return (ogg_stream_type_detect(inStream) == FLAC) ? 1 : 0; + return ogg_stream_type_detect(inStream) == FLAC; } static int oggflac_decode(struct decoder * mpd_decoder, InputStream * inStream) |