diff options
author | Guenter Bartsch <guenter@users.sourceforge.net> | 2001-06-03 18:08:56 +0000 |
---|---|---|
committer | Guenter Bartsch <guenter@users.sourceforge.net> | 2001-06-03 18:08:56 +0000 |
commit | 8f1375992e4ca75874af4693df751a935bfc9d0b (patch) | |
tree | 87f6f622f3cfcc69012a8a0efe752eccb66be60b /src/xine-engine/audio_decoder.c | |
parent | 346a22f8c859b2de000dfa5c34229b2ca0364a58 (diff) | |
download | xine-lib-8f1375992e4ca75874af4693df751a935bfc9d0b.tar.gz xine-lib-8f1375992e4ca75874af4693df751a935bfc9d0b.tar.bz2 |
bug fixes for xine_stop and xine_exit
CVS patchset: 117
CVS date: 2001/06/03 18:08:56
Diffstat (limited to 'src/xine-engine/audio_decoder.c')
-rw-r--r-- | src/xine-engine/audio_decoder.c | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/src/xine-engine/audio_decoder.c b/src/xine-engine/audio_decoder.c index 3131a4e37..3aceebeec 100644 --- a/src/xine-engine/audio_decoder.c +++ b/src/xine-engine/audio_decoder.c @@ -17,7 +17,7 @@ * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA * - * $Id: audio_decoder.c,v 1.11 2001/05/30 02:09:24 f1rmb Exp $ + * $Id: audio_decoder.c,v 1.12 2001/06/03 18:08:56 guenter Exp $ * * * functions that implement audio decoding @@ -183,6 +183,15 @@ void audio_decoder_init (xine_t *this) { pthread_create (&this->audio_thread, NULL, audio_decoder_loop, this) ; } +void audio_decoder_stop (xine_t *this) { + this->audio_fifo->clear(this->audio_fifo); + + if (this->cur_audio_decoder_plugin) { + this->cur_audio_decoder_plugin->close (this->cur_audio_decoder_plugin); + this->cur_audio_decoder_plugin = NULL; + } +} + void audio_decoder_shutdown (xine_t *this) { buf_element_t *buf; |