{ 0, 0, 0, 0 }
};
-/** @Brief Return a new packet */
+/** @brief Return a new packet */
static struct packet *new_packet(void) {
struct packet *p;
* Must be called with @ref lock held.
*/
static void fill_buffer(void) {
+ while(nsamples)
+ drop_first_packet();
info("Buffering...");
while(nsamples < readahead)
pthread_cond_wait(&cond, &lock);