summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMiguel Freitas <miguelfreitas@users.sourceforge.net>2004-12-19 20:39:06 +0000
committerMiguel Freitas <miguelfreitas@users.sourceforge.net>2004-12-19 20:39:06 +0000
commit73e149fbe507bffc06ef76a3bb98ad5a0e0ef6c2 (patch)
tree7e43455c709bbcde14500c3378373b3d80d006b0
parente1019bfd4706a9ab58e68c33e4c4d8aae2489557 (diff)
downloadxine-lib-73e149fbe507bffc06ef76a3bb98ad5a0e0ef6c2.tar.gz
xine-lib-73e149fbe507bffc06ef76a3bb98ad5a0e0ef6c2.tar.bz2
trying to properly close the polyaudio connection
CVS patchset: 7283 CVS date: 2004/12/19 20:39:06
-rw-r--r--src/audio_out/audio_polyp_out.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/audio_out/audio_polyp_out.c b/src/audio_out/audio_polyp_out.c
index 499358bc4..0fa8c307a 100644
--- a/src/audio_out/audio_polyp_out.c
+++ b/src/audio_out/audio_polyp_out.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: audio_polyp_out.c,v 1.4 2004/11/22 20:26:42 miguelfreitas Exp $
+ * $Id: audio_polyp_out.c,v 1.5 2004/12/19 20:39:06 miguelfreitas Exp $
*
* ao plugin for polypaudio:
* http://0pointer.de/lennart/projects/polypaudio/
@@ -322,11 +322,13 @@ static void ao_polyp_close(ao_driver_t *this_gen)
if (this->stream) {
if (pa_stream_get_state(this->stream) == PA_STREAM_READY)
wait_for_operation(this, pa_stream_drain(this->stream, NULL, NULL));
+ pa_stream_disconnect(this->stream);
pa_stream_unref(this->stream);
this->stream = NULL;
}
if (this->context) {
+ pa_context_disconnect(this->context);
pa_context_unref(this->context);
this->context = NULL;
}