diff options
author | Brad Smith <brad@comstyle.com> | 2012-06-08 11:15:29 +0300 |
---|---|---|
committer | Brad Smith <brad@comstyle.com> | 2012-06-08 11:15:29 +0300 |
commit | 230bccb2dcdaed84ce9820b13c4dc1f58eacb13a (patch) | |
tree | 3587b55c22f2195a998446b613bd7bc359984030 /src/xine-engine/audio_out.c | |
parent | e6f6b79fa729c82663b04901bd58d8d95e685cac (diff) | |
download | xine-lib-230bccb2dcdaed84ce9820b13c4dc1f58eacb13a.tar.gz xine-lib-230bccb2dcdaed84ce9820b13c4dc1f58eacb13a.tar.bz2 |
Fix utilization of _POSIX_THREAD_PRIORITY_SCHEDULING macro
A POSIX compliant OS can have a setting
of (-1) instead of say 200112L to indicate that the OS
does not implement the feature. The code as it is would
still attempt to utilize the functions if (-1) were
being set and fail to build.
Diffstat (limited to 'src/xine-engine/audio_out.c')
-rw-r--r-- | src/xine-engine/audio_out.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/xine-engine/audio_out.c b/src/xine-engine/audio_out.c index b9738595b..033421552 100644 --- a/src/xine-engine/audio_out.c +++ b/src/xine-engine/audio_out.c @@ -2284,7 +2284,7 @@ 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 +#if defined(_POSIX_THREAD_PRIORITY_SCHEDULING) && (_POSIX_THREAD_PRIORITY_SCHEDULING > 0) pthread_attr_setscope(&pth_attrs, PTHREAD_SCOPE_SYSTEM); #endif |