aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorEric Wong <normalperson@yhbt.net>2006-08-20 10:13:50 +0000
committerEric Wong <normalperson@yhbt.net>2006-08-20 10:13:50 +0000
commitf8b07de3d4deb4e11a2e803c7719d4d026524306 (patch)
tree8b00dc0059ef316a8b5fb76aed9edac8b14babaa /src
parentaa487e6c75a6a9bd70189707f977fd66ba9c12a7 (diff)
downloadmpd-f8b07de3d4deb4e11a2e803c7719d4d026524306.tar.gz
mpd-f8b07de3d4deb4e11a2e803c7719d4d026524306.tar.xz
mpd-f8b07de3d4deb4e11a2e803c7719d4d026524306.zip
inputPlugins/_ogg_common.c: check for read errors correctly
git-svn-id: https://svn.musicpd.org/mpd/trunk@4660 09075e82-0dd4-0310-85a5-a0d7c8717e4f
Diffstat (limited to 'src')
-rw-r--r--src/inputPlugins/_ogg_common.c2
1 files changed, 1 insertions, 1 deletions
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))