From f8b07de3d4deb4e11a2e803c7719d4d026524306 Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Sun, 20 Aug 2006 10:13:50 +0000 Subject: inputPlugins/_ogg_common.c: check for read errors correctly git-svn-id: https://svn.musicpd.org/mpd/trunk@4660 09075e82-0dd4-0310-85a5-a0d7c8717e4f --- src/inputPlugins/_ogg_common.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/inputPlugins/_ogg_common.c b/src/inputPlugins/_ogg_common.c index e4a264ac3..57e68770b 100644 --- a/src/inputPlugins/_ogg_common.c +++ b/src/inputPlugins/_ogg_common.c @@ -40,7 +40,7 @@ ogg_stream_type ogg_stream_type_detect(InputStream * inStream) while (to_read) { r = readFromInputStream(inStream, buf, 1, to_read); - if (r < inStream->error) + if (inStream->error) break; to_read -= r; if (!r && !inputStreamAtEOF(inStream)) -- cgit v1.2.3