Revision e816f3de output-grapes.c

View differences:

output-grapes.c
27 27
static char sflag = 0;
28 28
static char eflag = 0;
29 29

  
30
bool reorder = OUTPUT_REORDER;
31

  
30 32
struct outbuf {
31 33
  struct chunk c;
32 34
};
......
94 96
        fprintf(stderr, "\nFirst chunk id played out: %d\n\n",buff[i].c.id);
95 97
        sflag = 1;
96 98
      }
97
      chunk_write(out, &buff[i].c);
99
      if (reorder) chunk_write(out, &buff[i].c);
98 100
      last_chunk = buff[i].c.id;
99 101
    } else if (eflag == 0 && last_chunk != -1) {
100 102
      fprintf(stderr, "\nLast chunk id played out: %d\n\n", last_chunk);
......
129 131
    output_init(8, NULL);
130 132
  }
131 133

  
134
  if (!reorder) chunk_write(out, c);
135

  
132 136
  dprintf("Chunk %d delivered\n", c->id);
133 137
  buffer_print();
134 138
  if (c->id < next_chunk) {
......
169 173
          fprintf(stderr, "\nFirst chunk id played out: %d\n\n",c->id);
170 174
          sflag = 1;
171 175
        }
172
        chunk_write(out, c);
176
        if (reorder) chunk_write(out, c);
173 177
        last_chunk = c->id;
174 178
      } else if (eflag == 0 && last_chunk != -1) {
175 179
        fprintf(stderr, "\nLast chunk id played out: %d\n\n", last_chunk);

Also available in: Unified diff