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/video_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/video_decoder.c')
-rw-r--r-- | src/xine-engine/video_decoder.c | 15 |
1 files changed, 13 insertions, 2 deletions
diff --git a/src/xine-engine/video_decoder.c b/src/xine-engine/video_decoder.c index fd7dc9220..bacf7a15e 100644 --- a/src/xine-engine/video_decoder.c +++ b/src/xine-engine/video_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: video_decoder.c,v 1.15 2001/05/30 02:09:24 f1rmb Exp $ + * $Id: video_decoder.c,v 1.16 2001/06/03 18:08:56 guenter Exp $ * */ @@ -121,8 +121,15 @@ void video_decoder_init (xine_t *this) { this->video_fifo = fifo_buffer_new (1500, 4096); pthread_create (&this->video_thread, NULL, video_decoder_loop, this) ; +} + +void video_decoder_stop (xine_t *this) { + this->video_fifo->clear(this->video_fifo); - printf ("video_decoder_init: video thread created\n"); + if (this->cur_video_decoder_plugin) { + this->cur_video_decoder_plugin->close (this->cur_video_decoder_plugin); + this->cur_video_decoder_plugin = NULL; + } } void video_decoder_shutdown (xine_t *this) { @@ -137,4 +144,8 @@ void video_decoder_shutdown (xine_t *this) { this->video_fifo->put (this->video_fifo, buf); pthread_join (this->video_thread, &p); + + + this->video_out->exit (this->video_out); } + |