From 66242aba3fe1663229f7e7c80b25b96b9930ca1b Mon Sep 17 00:00:00 2001 From: Andre Noll Date: Fri, 28 Nov 2008 21:02:26 +0100 Subject: [PATCH] afh.c: Skip emtpy chunks. --- afh.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/afh.c b/afh.c index 86322422..c82d17fd 100644 --- 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) -- 2.39.5