diff options
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); } + |