summaryrefslogtreecommitdiff
path: root/src/demuxers/demux_avi.c
diff options
context:
space:
mode:
authorGuenter Bartsch <guenter@users.sourceforge.net>2001-09-04 16:19:27 +0000
committerGuenter Bartsch <guenter@users.sourceforge.net>2001-09-04 16:19:27 +0000
commitcb0ba2db97ee509f91e39dd0cde571c3322f13ea (patch)
treebf1ddbde11ec3f3cf98634dc114951e3faa16b8a /src/demuxers/demux_avi.c
parentfa9f180ebb7c9ac3a9f8cbacb47267d3431efec1 (diff)
downloadxine-lib-cb0ba2db97ee509f91e39dd0cde571c3322f13ea.tar.gz
xine-lib-cb0ba2db97ee509f91e39dd0cde571c3322f13ea.tar.bz2
race condition / stability fixes provided by Miguel Freitas <miguel@cetuc.puc-rio.br> - great stuff\! :-)
CVS patchset: 562 CVS date: 2001/09/04 16:19:27
Diffstat (limited to 'src/demuxers/demux_avi.c')
-rw-r--r--src/demuxers/demux_avi.c4
1 files changed, 3 insertions, 1 deletions
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;