Revision 19d6b4ca output.c

View differences:

output.c
23 23
  void *data;
24 24
  int size;
25 25
  int id;
26
  uint64_t timestamp;
26 27
};
27 28
static struct outbuf *buff;
28 29

  
......
75 76
  buff[i].data = NULL;
76 77
  dprintf("Next Chunk: %d -> %d\n", next_chunk, buff[i].id + 1);
77 78
#ifdef MONL
78
  reg_chunk_playout(true);
79
  reg_chunk_playout(buff[i].id, true, buff[i].timestamp);
79 80
#endif
80 81
  next_chunk = buff[i].id + 1;
81 82
}
......
122 123
        buffer_free(i % buff_size);
123 124
      } else {
124 125
#ifdef MONL
125
        reg_chunk_playout(false);
126
        reg_chunk_playout(c->id, false, c->timestamp);
126 127
#endif
127 128
        next_chunk++;
128 129
      }
......
136 137
    dprintf("\tOut Chunk[%d] - %d: %s\n", c->id, c->id % buff_size, c->data);
137 138
    chunk_write(c->id, c->data, c->size);
138 139
#ifdef MONL
139
    reg_chunk_playout(true);
140
    reg_chunk_playout(c->id, true, c->timestamp);
140 141
#endif
141 142
    next_chunk++;
142 143
    buffer_flush(next_chunk);
......
159 160
    memcpy(buff[c->id % buff_size].data, c->data, c->size);
160 161
    buff[c->id % buff_size].size = c->size;
161 162
    buff[c->id % buff_size].id = c->id;
163
    buff[c->id % buff_size].timestamp = c->timestamp;
162 164
  }
163 165
}

Also available in: Unified diff