]> git.tuebingen.mpg.de Git - paraslash.git/blobdiff - gui.c
FEC: Change the default slice size from 1490 to 1472.
[paraslash.git] / gui.c
diff --git a/gui.c b/gui.c
index 8272fee79747847522ebf7282d071b52fb66f845..5f2dba0230cf409e0f80820c8314d5d6cc1d6e84 100644 (file)
--- a/gui.c
+++ b/gui.c
@@ -1,5 +1,5 @@
 /*
- * Copyright (C) 1998-2009 Andre Noll <maan@systemlinux.org>
+ * Copyright (C) 1998-2010 Andre Noll <maan@systemlinux.org>
  *
  * Licensed under the GPL v2. For licencing details see COPYING.
  */
@@ -730,6 +730,8 @@ static int read_audiod_pipe(int fd)
        ret = for_each_stat_item(buf, loaded, update_item);
        if (ret < 0)
                return ret;
+       if (ret > 0 && ret < loaded)
+               memmove(buf, buf + loaded - ret, ret);
        loaded = ret;
        return 1;
 }