1f5756eb29
completely unmaintenable. Changes: * fixed format string vulnerability in audio CD input plugin * some build system fixes for Windows
27 lines
980 B
Text
27 lines
980 B
Text
$NetBSD: patch-ab,v 1.3 2005/10/13 10:48:01 jmmv Exp $
|
|
|
|
--- src/xine-engine/audio_decoder.c.orig 2005-10-08 15:57:49.000000000 +0200
|
|
+++ src/xine-engine/audio_decoder.c
|
|
@@ -448,7 +448,9 @@ static void *audio_decoder_loop (void *s
|
|
void _x_audio_decoder_init (xine_stream_t *stream) {
|
|
|
|
pthread_attr_t pth_attrs;
|
|
+#ifdef _POSIX_THREAD_PRIORITY_SCHEDULING
|
|
struct sched_param pth_params;
|
|
+#endif
|
|
int err;
|
|
|
|
if (stream->audio_out == NULL) {
|
|
@@ -486,10 +488,12 @@ void _x_audio_decoder_init (xine_stream_
|
|
*/
|
|
|
|
pthread_attr_init(&pth_attrs);
|
|
+#ifdef _POSIX_THREAD_PRIORITY_SCHEDULING
|
|
pthread_attr_getschedparam(&pth_attrs, &pth_params);
|
|
pth_params.sched_priority = sched_get_priority_min(SCHED_OTHER);
|
|
pthread_attr_setschedparam(&pth_attrs, &pth_params);
|
|
pthread_attr_setscope(&pth_attrs, PTHREAD_SCOPE_SYSTEM);
|
|
+#endif
|
|
|
|
stream->audio_thread_created = 1;
|
|
if ((err = pthread_create (&stream->audio_thread,
|