aboutsummaryrefslogtreecommitdiffstats
path: root/src/inputPlugins/_ogg_common.c
diff options
context:
space:
mode:
Diffstat (limited to '')
-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))