inputPlugins/_ogg_common.c: check for read errors correctly
git-svn-id: https://svn.musicpd.org/mpd/trunk@4660 09075e82-0dd4-0310-85a5-a0d7c8717e4f
This commit is contained in:
parent
aa487e6c75
commit
f8b07de3d4
@ -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))
|
||||||
|
Loading…
Reference in New Issue
Block a user