Commit f602b253 authored by Joanne Hugé's avatar Joanne Hugé

wip

parent 836f330e
......@@ -427,13 +427,18 @@ static void *encode_thread(void *p) {
error(EXIT_FAILURE, errno, "Could not set CPU affinity to CPU %d\n", s->encode_affinity);
for(int64_t i = 0;; i++) {
int64_t n;
int64_t to_write, to_read;
n = rbuf_write_amount(&tx_rbuf);
to_write = rbuf_write_amount(&tx_rbuf);
to_read = rbuf_read_amount(&trxw_rbuf[0]);
// If we have frames to encode (is there space in TX buffer)
// If there are frames from trx_write callback to encode
if(n && rbuf_read_amount(&trxw_rbuf[0])) {
if(to_write && to_read) {
// TODO
int nc;
int nf = nb_frames;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment