fprintf(stderr,"TX RBUF: ri %li wi %li ra %li wa %li\n",tx_rbuf.read_index,tx_rbuf.write_index,rbuf_read_amount(&tx_rbuf),rbuf_write_amount(&tx_rbuf));
fprintf(stderr,"RX RBUF: ri %li wi %li ra %li wa %li\n",rx_rbuf.read_index,rx_rbuf.write_index,rbuf_read_amount(&rx_rbuf),rbuf_write_amount(&rx_rbuf));
fprintf(stderr,"TRXW RBUF: ri %li wi %li ra %li wa %li\n",trxw_rbuf.read_index,trxw_rbuf.write_index,rbuf_read_amount(&trxw_rbuf),rbuf_write_amount(&trxw_rbuf));
fprintf(stderr,"TRXR RBUF: ri %li wi %li ra %li wa %li\n",trxr_rbuf.read_index,trxr_rbuf.write_index,rbuf_read_amount(&trxr_rbuf),rbuf_write_amount(&trxr_rbuf));
fprintf(stderr,"TRXW GROUP RBUF: ri %li wi %li ra %li wa %li\n",trxw_group_rbuf.read_index,trxw_group_rbuf.write_index,rbuf_read_amount(&trxw_group_rbuf),rbuf_write_amount(&trxw_group_rbuf));
// We have sent too much empty frames and missed a timestamp
update_counter(&encode_counter,nb_frames);
elseif(frames_until_ts<0){
log_error("TRX_ECPRI_SEND","Missed trx_write timestamp: p %015li ts %015li r %015li n %015li e %015li",encode_counter.counter,ts,rbuf_read_amount(&trx_write_rbuf),n,frames_until_ts);