From b8e453e1fc7838acaf36c573e001077fd9cc8de9 Mon Sep 17 00:00:00 2001 From: Thibaut Mattern Date: Sun, 23 Feb 2003 21:52:42 +0000 Subject: New function that should be called at the end of the stream to unpause the engine if buffering. CVS patchset: 4269 CVS date: 2003/02/23 21:52:42 --- src/input/net_buf_ctrl.c | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'src') diff --git a/src/input/net_buf_ctrl.c b/src/input/net_buf_ctrl.c index ee4136a4a..dc64f000c 100644 --- a/src/input/net_buf_ctrl.c +++ b/src/input/net_buf_ctrl.c @@ -198,6 +198,20 @@ void nbc_close (nbc_t *this) { free (this); } +void nbc_end_of_stream (nbc_t *this) { +#ifdef LOG + printf("net_buf_ctrl: nbc_end_of_stream\n"); +#endif + /* unpause the engine */ + if (this->buffering) { + this->buffering = 0; + this->stream->xine->clock->set_speed (this->stream->xine->clock, XINE_SPEED_NORMAL); + this->stream->xine->clock->set_option (this->stream->xine->clock, CLOCK_SCR_ADJUSTABLE, 1); + if (this->stream->audio_out) + this->stream->audio_out->set_property(this->stream->audio_out,AO_PROP_PAUSED,0); + } +} + nbc_t *nbc_init (xine_stream_t *stream) { nbc_t *this = (nbc_t *) malloc (sizeof (nbc_t)); -- cgit v1.2.3