diff options
Diffstat (limited to 'multimedia/xine-lib/patches/patch-aa')
-rw-r--r-- | multimedia/xine-lib/patches/patch-aa | 50 |
1 files changed, 25 insertions, 25 deletions
diff --git a/multimedia/xine-lib/patches/patch-aa b/multimedia/xine-lib/patches/patch-aa index d2968fc099f..5fd1e44f5c9 100644 --- a/multimedia/xine-lib/patches/patch-aa +++ b/multimedia/xine-lib/patches/patch-aa @@ -1,8 +1,8 @@ -$NetBSD: patch-aa,v 1.1.1.1 2004/01/26 13:03:38 jmmv Exp $ +$NetBSD: patch-aa,v 1.2 2004/03/11 17:26:02 jmmv Exp $ ---- src/xine-engine/video_decoder.c.orig 2003-04-06 10:23:10.000000000 +1000 +--- src/xine-engine/video_decoder.c.orig 2003-12-08 11:36:27.000000000 +0100 +++ src/xine-engine/video_decoder.c -@@ -33,6 +33,10 @@ +@@ -41,6 +41,10 @@ #include "xineutils.h" #include <sched.h> @@ -10,29 +10,29 @@ $NetBSD: patch-aa,v 1.1.1.1 2004/01/26 13:03:38 jmmv Exp $ +#define SCHED_OTHER 0 +#endif + - /* - #define LOG - */ -@@ -393,7 +397,9 @@ void *video_decoder_loop (void *stream_g - void video_decoder_init (xine_stream_t *stream) { - - pthread_attr_t pth_attrs; -+#ifdef _POSIX_THREAD_PRIORITY_SCHEDULING - struct sched_param pth_params; -+#endif - int err, num_buffers; + static void update_spu_decoder (xine_stream_t *stream, int type) { - /* The fifo size is based on dvd playback where buffers are filled -@@ -416,10 +422,12 @@ void video_decoder_init (xine_stream_t * - stream->spu_track_map_entries = 0; - - pthread_attr_init(&pth_attrs); + int streamtype = (type>>16) & 0xFF; +@@ -390,7 +394,9 @@ void _x_video_decoder_init (xine_stream_ + } else { + + pthread_attr_t 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); + struct sched_param pth_params; +#endif + int err, num_buffers; + /* The fifo size is based on dvd playback where buffers are filled + * with 2k of data. With 500 buffers and a typical video data rate +@@ -411,10 +417,12 @@ void _x_video_decoder_init (xine_stream_ + stream->spu_track_map_entries = 0; - if ((err = pthread_create (&stream->video_thread, - &pth_attrs, video_decoder_loop, stream)) != 0) { + 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 + + if ((err = pthread_create (&stream->video_thread, + &pth_attrs, video_decoder_loop, stream)) != 0) { |