oss_write: Add missing btr_merge().
authorAndre Noll <maan@systemlinux.org>
Sat, 26 Jun 2010 10:57:06 +0000 (12:57 +0200)
committerAndre Noll <maan@systemlinux.org>
Sat, 26 Jun 2010 10:57:06 +0000 (12:57 +0200)
Without this patch, the oss writer could detect an EOF condition
even if more data is available.

oss_write.c

index da2539d..6525afa 100644 (file)
@@ -174,6 +174,7 @@ static void oss_post_select(__a_unused struct sched *s,
                        goto out;
                return;
        }
+       btr_merge(btrn, wn->min_iqs);
        bytes = btr_next_buffer(btrn, &data);
        frames = bytes / powd->bytes_per_frame;
        if (!frames) { /* eof and less than a single frame available */