diff options
Diffstat (limited to 'src/demuxers/demux_mpgaudio.c')
-rw-r--r-- | src/demuxers/demux_mpgaudio.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/demuxers/demux_mpgaudio.c b/src/demuxers/demux_mpgaudio.c index fb967cb89..6a220981b 100644 --- a/src/demuxers/demux_mpgaudio.c +++ b/src/demuxers/demux_mpgaudio.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: demux_mpgaudio.c,v 1.17 2001/09/01 14:33:00 guenter Exp $ + * $Id: demux_mpgaudio.c,v 1.18 2001/09/04 16:19:27 guenter Exp $ * * demultiplexer for mpeg audio (i.e. mp3) streams * @@ -141,6 +141,7 @@ static void demux_mpgaudio_stop (demux_plugin_t *this_gen) { demux_mpgaudio_t *this = (demux_mpgaudio_t *) this_gen; buf_element_t *buf; + void *p; if (this->status != DEMUX_OK) { printf ("demux_mpgaudio_block: stop...ignored\n"); @@ -151,6 +152,7 @@ static void demux_mpgaudio_stop (demux_plugin_t *this_gen) { this->status = DEMUX_FINISHED; pthread_cancel (this->thread); + pthread_join (this->thread, &p); this->video_fifo->clear(this->video_fifo); if (this->audio_fifo) |