summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/input/net_buf_ctrl.c17
1 files changed, 17 insertions, 0 deletions
diff --git a/src/input/net_buf_ctrl.c b/src/input/net_buf_ctrl.c
index 6fb1c557e..cc8135dc0 100644
--- a/src/input/net_buf_ctrl.c
+++ b/src/input/net_buf_ctrl.c
@@ -368,8 +368,17 @@ static void nbc_put_cb (fifo_buffer_t *fifo,
}
break;
}
+
+ if (fifo == this->video_fifo) {
+ this->video_fifo_free = fifo->buffer_pool_num_free;
+ this->video_fifo_size = fifo->fifo_data_size;
+ } else {
+ this->audio_fifo_free = fifo->buffer_pool_num_free;
+ this->audio_fifo_size = fifo->fifo_data_size;
+ }
}
+
display_stats(this);
pthread_mutex_unlock(&this->mutex);
}
@@ -431,6 +440,14 @@ static void nbc_get_cb (fifo_buffer_t *fifo,
lprintf("\nnet_buf_ctrl: nbc_get_cb audio disc %d\n", this->audio_in_disc);
}
}
+
+ if (fifo == this->video_fifo) {
+ this->video_fifo_free = fifo->buffer_pool_num_free;
+ this->video_fifo_size = fifo->fifo_data_size;
+ } else {
+ this->audio_fifo_free = fifo->buffer_pool_num_free;
+ this->audio_fifo_size = fifo->fifo_data_size;
+ }
}
display_stats(this);
pthread_mutex_unlock(&this->mutex);