From ddd1fd7180f788deb3c496c8a33abdf27d77feb6 Mon Sep 17 00:00:00 2001 From: Juergen Keil Date: Sat, 12 Oct 2002 19:20:02 +0000 Subject: 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 --- src/xine-engine/audio_out.c | 9 +++++++-- 1 file 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 @@ -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 ? */ -- cgit v1.2.3