summaryrefslogtreecommitdiff
path: root/src/xine-engine/audio_out.c
diff options
context:
space:
mode:
authorMichael Roitzsch <mroi@users.sourceforge.net>2003-06-22 17:10:41 +0000
committerMichael Roitzsch <mroi@users.sourceforge.net>2003-06-22 17:10:41 +0000
commit3dc9fe628d0832bf2866afd9dc83e27ee85435e5 (patch)
tree7fc76f3b9a4c1e0cfc5eb73750927291ce52a493 /src/xine-engine/audio_out.c
parentcb110558df923589ef7faf98b6647cb39c55c241 (diff)
downloadxine-lib-3dc9fe628d0832bf2866afd9dc83e27ee85435e5.tar.gz
xine-lib-3dc9fe628d0832bf2866afd9dc83e27ee85435e5.tar.bz2
some additional pthread_*_destroy() calls
(based on the implementation, this might fix memleaks on some platforms, although I doubt that this is the case here) CVS patchset: 5091 CVS date: 2003/06/22 17:10:41
Diffstat (limited to 'src/xine-engine/audio_out.c')
-rw-r--r--src/xine-engine/audio_out.c15
1 files changed, 14 insertions, 1 deletions
diff --git a/src/xine-engine/audio_out.c b/src/xine-engine/audio_out.c
index 0cfbd4625..ca82a1510 100644
--- a/src/xine-engine/audio_out.c
+++ b/src/xine-engine/audio_out.c
@@ -17,7 +17,7 @@
* along with self program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA
*
- * $Id: audio_out.c,v 1.131 2003/06/20 20:57:28 andruil Exp $
+ * $Id: audio_out.c,v 1.132 2003/06/22 17:10:41 mroi Exp $
*
* 22-8-2001 James imported some useful AC3 sections from the previous alsa driver.
* (c) 2001 Andy Lo A Foe <andy@alsaplayer.org>
@@ -1423,6 +1423,9 @@ static void ao_exit(xine_audio_port_t *this_gen) {
free (this->frame_buf[1]->extra_info);
free (this->frame_buf[1]);
free (this->zero_space);
+
+ pthread_mutex_destroy(&this->flush_audio_driver_lock);
+ pthread_cond_destroy(&this->flush_audio_driver_reached);
buf = this->free_fifo->first;
@@ -1450,6 +1453,14 @@ static void ao_exit(xine_audio_port_t *this_gen) {
buf = next;
}
+ pthread_mutex_destroy(&this->free_fifo->mutex);
+ pthread_cond_destroy(&this->free_fifo->empty);
+ pthread_cond_destroy(&this->free_fifo->not_empty);
+
+ pthread_mutex_destroy(&this->out_fifo->mutex);
+ pthread_cond_destroy(&this->out_fifo->empty);
+ pthread_cond_destroy(&this->out_fifo->not_empty);
+
free (this->free_fifo);
free (this->out_fifo);
free (this);
@@ -1870,6 +1881,8 @@ xine_audio_port_t *ao_new_port (xine_t *xine, ao_driver_t *driver,
} else
xprintf (this->xine, XINE_VERBOSITY_DEBUG, "thread created\n");
+
+ pthread_attr_destroy(&pth_attrs);
}
return &this->ao;