From: Thibaut M. <tma...@us...> - 2003-02-23 21:52:45
|
Update of /cvsroot/xine/xine-lib/src/input In directory sc8-pr-cvs1:/tmp/cvs-serv10058 Modified Files: net_buf_ctrl.c Log Message: New function that should be called at the end of the stream to unpause the engine if buffering. Index: net_buf_ctrl.c =================================================================== RCS file: /cvsroot/xine/xine-lib/src/input/net_buf_ctrl.c,v retrieving revision 1.20 retrieving revision 1.21 diff -u -r1.20 -r1.21 --- net_buf_ctrl.c 23 Feb 2003 19:42:23 -0000 1.20 +++ net_buf_ctrl.c 23 Feb 2003 21:52:42 -0000 1.21 @@ -198,6 +198,20 @@ 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)); |