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/ffmpeg_plugin.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/decoder/ffmpeg_plugin.c') diff --git a/src/decoder/ffmpeg_plugin.c b/src/decoder/ffmpeg_plugin.c index bc0ffe221..6de31d52a 100644 --- a/src/decoder/ffmpeg_plugin.c +++ b/src/decoder/ffmpeg_plugin.c @@ -360,7 +360,7 @@ static struct tag *ffmpeg_tag(char *file) int ret; struct tag *tag = NULL; - if (input_stream_open(&input, file) < 0) { + if (!input_stream_open(&input, file)) { ERROR("failed to open %s\n", file); return NULL; } -- cgit v1.2.3