diff options
author | Guenter Bartsch <guenter@users.sourceforge.net> | 2002-08-24 01:03:49 +0000 |
---|---|---|
committer | Guenter Bartsch <guenter@users.sourceforge.net> | 2002-08-24 01:03:49 +0000 |
commit | 1ca29905fbcf88f948f06337734acaf01a624b26 (patch) | |
tree | 24cd832328846a5648e85ba89d683f13bfe28b2f | |
parent | 8ae37578e4ac208c69fa14fa233135a25b218e2d (diff) | |
download | xine-lib-1ca29905fbcf88f948f06337734acaf01a624b26.tar.gz xine-lib-1ca29905fbcf88f948f06337734acaf01a624b26.tar.bz2 |
make it work without audio
CVS patchset: 2505
CVS date: 2002/08/24 01:03:49
-rw-r--r-- | src/input/net_buf_ctrl.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/input/net_buf_ctrl.c b/src/input/net_buf_ctrl.c index 896fa5d6b..a3e7a9b78 100644 --- a/src/input/net_buf_ctrl.c +++ b/src/input/net_buf_ctrl.c @@ -81,13 +81,15 @@ void nbc_check_buffers (nbc_t *this) { this->xine->metronom->set_speed (this->xine->metronom, SPEED_PAUSE); this->xine->metronom->set_option (this->xine->metronom, METRONOM_SCR_ADJUSTABLE, 0); - this->xine->audio_out->audio_paused = 2; + if (this->xine->audio_out) + this->xine->audio_out->audio_paused = 2; this->buffering = 1; } else if ( (fifo_fill>this->high_water_mark) && (this->buffering)) { this->xine->metronom->set_speed (this->xine->metronom, SPEED_NORMAL); this->xine->metronom->set_option (this->xine->metronom, METRONOM_SCR_ADJUSTABLE, 1); - this->xine->audio_out->audio_paused = 0; + if (this->xine->audio_out) + this->xine->audio_out->audio_paused = 0; this->buffering = 0; this->xine->osd_renderer->hide (this->xine->osd, 0); |