summaryrefslogtreecommitdiff
path: root/apps
diff options
context:
space:
mode:
Diffstat (limited to 'apps')
-rw-r--r--apps/buffering.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/buffering.c b/apps/buffering.c
index f70400a1ee..578f0f261a 100644
--- a/apps/buffering.c
+++ b/apps/buffering.c
@@ -691,7 +691,7 @@ static bool buffer_handle(int handle_id, size_t to_buffer)
691 /* rc is the actual amount read */ 691 /* rc is the actual amount read */
692 int rc = read(h->fd, &buffer[h->widx], copy_n); 692 int rc = read(h->fd, &buffer[h->widx], copy_n);
693 693
694 if (rc < 0) { 694 if (rc <= 0) {
695 /* Some kind of filesystem error, maybe recoverable if not codec */ 695 /* Some kind of filesystem error, maybe recoverable if not codec */
696 if (h->type == TYPE_CODEC) { 696 if (h->type == TYPE_CODEC) {
697 logf("Partial codec"); 697 logf("Partial codec");