diff options
author | Guenter Bartsch <guenter@users.sourceforge.net> | 2001-08-12 15:12:54 +0000 |
---|---|---|
committer | Guenter Bartsch <guenter@users.sourceforge.net> | 2001-08-12 15:12:54 +0000 |
commit | 9c7fc92c6c391b037393721dbe8742ddd260b1d1 (patch) | |
tree | 509e00c37b99b8450bd2d8bbc02a25179b60b9f8 /src/demuxers/demux_pes.c | |
parent | d831b53279b0814ace01fc1d82bded5a73bb856c (diff) | |
download | xine-lib-9c7fc92c6c391b037393721dbe8742ddd260b1d1.tar.gz xine-lib-9c7fc92c6c391b037393721dbe8742ddd260b1d1.tar.bz2 |
cancel demux thread on xine_stop instead of pthread_join to prevent hang
CVS patchset: 415
CVS date: 2001/08/12 15:12:54
Diffstat (limited to 'src/demuxers/demux_pes.c')
-rw-r--r-- | src/demuxers/demux_pes.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/demuxers/demux_pes.c b/src/demuxers/demux_pes.c index a1569fe74..c67e15442 100644 --- a/src/demuxers/demux_pes.c +++ b/src/demuxers/demux_pes.c @@ -1,5 +1,5 @@ /* - * Copyright (C) 2000 the xine project + * Copyright (C) 2000, 2001 the xine project * * This file is part of xine, a unix video player. * @@ -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: demux_pes.c,v 1.2 2001/08/10 19:49:57 guenter Exp $ + * $Id: demux_pes.c,v 1.3 2001/08/12 15:12:54 guenter Exp $ * * demultiplexer for mpeg 2 PES (Packetized Elementary Streams) * reads streams of variable blocksizes @@ -371,7 +371,7 @@ static void demux_mpeg_stop (demux_plugin_t *this_gen) { this->send_end_buffers = 0; this->status = DEMUX_FINISHED; - pthread_join (this->thread, &p); + pthread_cancel (this->thread); this->video_fifo->clear(this->video_fifo); if(this->audio_fifo) |