From cb0ba2db97ee509f91e39dd0cde571c3322f13ea Mon Sep 17 00:00:00 2001 From: Guenter Bartsch Date: Tue, 4 Sep 2001 16:19:27 +0000 Subject: race condition / stability fixes provided by Miguel Freitas - great stuff\! :-) CVS patchset: 562 CVS date: 2001/09/04 16:19:27 --- src/demuxers/demux_avi.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/demuxers/demux_avi.c') diff --git a/src/demuxers/demux_avi.c b/src/demuxers/demux_avi.c index a2e156ca4..737681df8 100644 --- a/src/demuxers/demux_avi.c +++ b/src/demuxers/demux_avi.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_avi.c,v 1.33 2001/09/02 22:26:54 guenter Exp $ + * $Id: demux_avi.c,v 1.34 2001/09/04 16:19:27 guenter Exp $ * * demultiplexer for avi streams * @@ -808,6 +808,7 @@ static void demux_avi_stop (demux_plugin_t *this_gen) { demux_avi_t *this = (demux_avi_t *) this_gen; buf_element_t *buf; + void *p; if (this->status != DEMUX_OK) { printf ("demux_avi: stop...ignored\n"); @@ -818,6 +819,7 @@ static void demux_avi_stop (demux_plugin_t *this_gen) { this->status = DEMUX_FINISHED; pthread_cancel (this->thread); + pthread_join (this->thread, &p); AVI_close (this->avi); this->avi = NULL; -- cgit v1.2.3