Revision a2cb3546 streaming.c

View differences:

streaming.c
24 24
#include <chunkidset.h>
25 25
#include <limits.h>
26 26
#include <trade_sig_ha.h>
27
#ifdef CHUNK_ATTRIB_CHUNKER
27 28
#include <chunkiser_attrib.h>
29
#endif
28 30

  
29 31
#include "streaming.h"
30 32
#include "streamer.h"
......
130 132
  struct chunk_attributes * ca;
131 133
  int priority = 1;
132 134

  
133
  assert((!c->attributes && c->attributes_size == 0) ||
134
         chunk_attributes_chunker_verify(c->attributes, c->attributes_size));
135
  assert((!c->attributes && c->attributes_size == 0)
136
#ifdef CHUNK_ATTRIB_CHUNKER
137
      || chunk_attributes_chunker_verify(c->attributes, c->attributes_size)
138
#endif
139
  );
135 140

  
141
#ifdef CHUNK_ATTRIB_CHUNKER
136 142
  if (chunk_attributes_chunker_verify(c->attributes, c->attributes_size)) {
137 143
    priority = ((struct chunk_attributes_chunker*) c->attributes)->priority;
138 144
    free(c->attributes);
139 145
    c->attributes = NULL;
140 146
    c->attributes_size = 0;
141 147
  }
148
#endif
142 149

  
143 150
  c->attributes_size = sizeof(struct chunk_attributes);
144 151
  c->attributes = ca = malloc(c->attributes_size);

Also available in: Unified diff