diff options
author | Thibaut Mattern <tmattern@users.sourceforge.net> | 2003-10-17 00:35:45 +0000 |
---|---|---|
committer | Thibaut Mattern <tmattern@users.sourceforge.net> | 2003-10-17 00:35:45 +0000 |
commit | efb86d6c212ee2c56ec3c9cf7a1f0edcc1cb0a34 (patch) | |
tree | 084d6a6223ce20edb738a48a746fc2d1ba677363 | |
parent | 975e5194a8494a8f9379fb15e912db56fa0743de (diff) | |
download | xine-lib-efb86d6c212ee2c56ec3c9cf7a1f0edcc1cb0a34.tar.gz xine-lib-efb86d6c212ee2c56ec3c9cf7a1f0edcc1cb0a34.tar.bz2 |
Allways initialize fifo size.
Fix a problem introduced by the previous cleanup.
CVS patchset: 5533
CVS date: 2003/10/17 00:35:45
-rw-r--r-- | src/input/net_buf_ctrl.c | 17 |
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); |