diff options
author | Thibaut Mattern <tmattern@users.sourceforge.net> | 2003-02-23 21:52:42 +0000 |
---|---|---|
committer | Thibaut Mattern <tmattern@users.sourceforge.net> | 2003-02-23 21:52:42 +0000 |
commit | b8e453e1fc7838acaf36c573e001077fd9cc8de9 (patch) | |
tree | 25116a0e519e4e74bc3e653e1191f544bfe36a1f | |
parent | a09762873602d11eda42986ee75695b7c3558c43 (diff) | |
download | xine-lib-b8e453e1fc7838acaf36c573e001077fd9cc8de9.tar.gz xine-lib-b8e453e1fc7838acaf36c573e001077fd9cc8de9.tar.bz2 |
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
-rw-r--r-- | src/input/net_buf_ctrl.c | 14 |
1 files changed, 14 insertions, 0 deletions
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)); |