]> git.tue.mpg.de Git - paraslash.git/commitdiff
afh.c: Skip emtpy chunks.
authorAndre Noll <maan@systemlinux.org>
Fri, 28 Nov 2008 20:02:26 +0000 (21:02 +0100)
committerAndre Noll <maan@systemlinux.org>
Fri, 28 Nov 2008 20:02:26 +0000 (21:02 +0100)
afh.c

diff --git a/afh.c b/afh.c
index 863224220d82360cc1d8fe5b0d262385cbf62a29..c82d17fd19acc5c1484d883b4021a59d4718c599 100644 (file)
--- a/afh.c
+++ b/afh.c
@@ -112,6 +112,8 @@ static int cat_file(void *audio_file_data, struct afh_info *afhi)
                                        return ret;
                        }
                }
+               if (!size)
+                       continue;
                PARA_INFO_LOG("writing chunk %lu\n", i);
                ret = write_all(STDOUT_FILENO, buf, &size);
                if (ret < 0)