Commit f8b07de3 authored by Eric Wong's avatar Eric Wong

inputPlugins/_ogg_common.c: check for read errors correctly

git-svn-id: https://svn.musicpd.org/mpd/trunk@4660 09075e82-0dd4-0310-85a5-a0d7c8717e4f
parent aa487e6c
...@@ -40,7 +40,7 @@ ogg_stream_type ogg_stream_type_detect(InputStream * inStream) ...@@ -40,7 +40,7 @@ ogg_stream_type ogg_stream_type_detect(InputStream * inStream)
while (to_read) { while (to_read) {
r = readFromInputStream(inStream, buf, 1, to_read); r = readFromInputStream(inStream, buf, 1, to_read);
if (r < inStream->error) if (inStream->error)
break; break;
to_read -= r; to_read -= r;
if (!r && !inputStreamAtEOF(inStream)) if (!r && !inputStreamAtEOF(inStream))
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment