2010-09-13 16:12:16 -04:00
|
|
|
$OpenBSD: patch-src_xine-engine_audio_decoder_c,v 1.9 2010/09/13 20:12:16 sthen Exp $
|
|
|
|
--- src/xine-engine/audio_decoder.c.orig Wed Jul 21 13:43:52 2010
|
|
|
|
+++ src/xine-engine/audio_decoder.c Tue Jul 27 16:54:36 2010
|
|
|
|
@@ -505,7 +505,9 @@ int _x_audio_decoder_init (xine_stream_t *stream) {
|
2006-03-24 17:43:41 -05:00
|
|
|
pthread_attr_init(&pth_attrs);
|
2010-09-13 16:12:16 -04:00
|
|
|
#ifdef _POSIX_THREAD_PRIORITY_SCHEDULING
|
2006-03-24 17:43:41 -05:00
|
|
|
pthread_attr_getschedparam(&pth_attrs, &pth_params);
|
2010-09-13 16:12:16 -04:00
|
|
|
+#ifndef __OpenBSD__
|
2006-03-24 17:43:41 -05:00
|
|
|
pth_params.sched_priority = sched_get_priority_min(SCHED_OTHER);
|
2010-09-13 16:12:16 -04:00
|
|
|
+#endif
|
2006-03-24 17:43:41 -05:00
|
|
|
pthread_attr_setschedparam(&pth_attrs, &pth_params);
|
|
|
|
pthread_attr_setscope(&pth_attrs, PTHREAD_SCOPE_SYSTEM);
|
2010-09-13 16:12:16 -04:00
|
|
|
#endif
|