summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJuergen Keil <jkeil@users.sourceforge.net>2002-10-12 19:20:02 +0000
committerJuergen Keil <jkeil@users.sourceforge.net>2002-10-12 19:20:02 +0000
commitddd1fd7180f788deb3c496c8a33abdf27d77feb6 (patch)
treed9ffabb44f2ea53fa76fcb04e346528c73fd8b61 /src
parent0d4ed9cadfdbb049c732e6a412d032765ceb1a02 (diff)
downloadxine-lib-ddd1fd7180f788deb3c496c8a33abdf27d77feb6.tar.gz
xine-lib-ddd1fd7180f788deb3c496c8a33abdf27d77feb6.tar.bz2
Bind the audio_out thread to a separate LWP on solaris 8 (like video_out,
video_decoder and audio_decoder) CVS patchset: 2819 CVS date: 2002/10/12 19:20:02
Diffstat (limited to 'src')
-rw-r--r--src/xine-engine/audio_out.c9
1 files changed, 7 insertions, 2 deletions
diff --git a/src/xine-engine/audio_out.c b/src/xine-engine/audio_out.c
index 564ed71ab..5e2da61f9 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.68 2002/10/12 10:36:52 jcdutton Exp $
+ * $Id: audio_out.c,v 1.69 2002/10/12 19:20:02 jkeil Exp $
*
* 22-8-2001 James imported some useful AC3 sections from the previous alsa driver.
* (c) 2001 Andy Lo A Foe <andy@alsaplayer.org>
@@ -573,6 +573,7 @@ static int ao_open(ao_instance_t *this,
uint32_t bits, uint32_t rate, int mode) {
int output_sample_rate, err;
+ pthread_attr_t pth_attrs;
/*
* set metainfo
@@ -676,8 +677,12 @@ static int ao_open(ao_instance_t *this,
}
this->audio_loop_running = 1;
+
+ pthread_attr_init(&pth_attrs);
+ pthread_attr_setscope(&pth_attrs, PTHREAD_SCOPE_SYSTEM);
+
if ((err = pthread_create (&this->audio_thread,
- NULL, ao_loop, this)) != 0) {
+ &pth_attrs, ao_loop, this)) != 0) {
/* FIXME: how does this happen ? */