summaryrefslogtreecommitdiff
path: root/src/xine-engine/audio_out.c
diff options
context:
space:
mode:
authorMatthias Drochner <m.drochner@fz-juelich.de>2010-07-21 15:27:33 +0000
committerMatthias Drochner <m.drochner@fz-juelich.de>2010-07-21 15:27:33 +0000
commite9c4a618fbc47dae2cdd82d4d09ade8ec020bfe1 (patch)
treeb6adae3a891d51befdc74cd691498fe38a2dbc61 /src/xine-engine/audio_out.c
parentba6e40bee872673f4af4e32836d633b28e634997 (diff)
downloadxine-lib-e9c4a618fbc47dae2cdd82d4d09ade8ec020bfe1.tar.gz
xine-lib-e9c4a618fbc47dae2cdd82d4d09ade8ec020bfe1.tar.bz2
Add _POSIX_THREAD_PRIORITY_SCHEDULING #ifdefs
This is optional, and some systems don't support it. POSIX defines the _POSIX_THREAD_PRIORITY_SCHEDULING to tell that support is present.
Diffstat (limited to 'src/xine-engine/audio_out.c')
-rw-r--r--src/xine-engine/audio_out.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/xine-engine/audio_out.c b/src/xine-engine/audio_out.c
index 0a141e014..b9738595b 100644
--- a/src/xine-engine/audio_out.c
+++ b/src/xine-engine/audio_out.c
@@ -2284,7 +2284,9 @@ xine_audio_port_t *_x_ao_new_port (xine_t *xine, ao_driver_t *driver,
this->audio_loop_running = 1;
pthread_attr_init(&pth_attrs);
+#ifdef _POSIX_THREAD_PRIORITY_SCHEDULING
pthread_attr_setscope(&pth_attrs, PTHREAD_SCOPE_SYSTEM);
+#endif
this->audio_thread_created = 1;
if ((err = pthread_create (&this->audio_thread,