summaryrefslogtreecommitdiff
path: root/graphics/xine-lib/patches/patch-aa
diff options
context:
space:
mode:
authorrh <rh@pkgsrc.org>2003-04-06 11:06:01 +0000
committerrh <rh@pkgsrc.org>2003-04-06 11:06:01 +0000
commit863bfbfd2168b4b2a2d8e2cf3676c5a4f97b905a (patch)
tree4839270a528b9e4e5d95f53e3e7fa336ec555745 /graphics/xine-lib/patches/patch-aa
parentd7598a0fdca071a1fae8c377d511bae7132bd877 (diff)
downloadpkgsrc-863bfbfd2168b4b2a2d8e2cf3676c5a4f97b905a.tar.gz
Initial import of xine-lib-1.0rc9, a multimedia player library.
Diffstat (limited to 'graphics/xine-lib/patches/patch-aa')
-rw-r--r--graphics/xine-lib/patches/patch-aa40
1 files changed, 40 insertions, 0 deletions
diff --git a/graphics/xine-lib/patches/patch-aa b/graphics/xine-lib/patches/patch-aa
new file mode 100644
index 00000000000..d7c9d4d27ef
--- /dev/null
+++ b/graphics/xine-lib/patches/patch-aa
@@ -0,0 +1,40 @@
+$NetBSD: patch-aa,v 1.1.1.1 2003/04/06 11:06:02 rh Exp $
+
+--- src/xine-engine/video_decoder.c.orig 2003-03-08 08:28:35.000000000 +1000
++++ src/xine-engine/video_decoder.c
+@@ -33,6 +33,10 @@
+ #include "xineutils.h"
+ #include <sched.h>
+
++#ifndef SCHED_OTHER
++#define SCHED_OTHER 0
++#endif
++
+ /*
+ #define LOG
+ */
+@@ -375,7 +379,9 @@ void *video_decoder_loop (void *stream_g
+ void video_decoder_init (xine_stream_t *stream) {
+
+ pthread_attr_t pth_attrs;
++#ifndef _PTH_PTHREAD_H_
+ struct sched_param pth_params;
++#endif
+ int err, num_buffers;
+
+ /* The fifo size is based on dvd playback where buffers are filled
+@@ -398,10 +404,14 @@ void video_decoder_init (xine_stream_t *
+ stream->spu_track_map_entries = 0;
+
+ pthread_attr_init(&pth_attrs);
++#ifndef _PTH_PTHREAD_H_
+ pthread_attr_getschedparam(&pth_attrs, &pth_params);
+ pth_params.sched_priority = sched_get_priority_min(SCHED_OTHER);
+ pthread_attr_setschedparam(&pth_attrs, &pth_params);
++#endif
++#ifdef PTHREAD_SCOPE_SYSTEM
+ pthread_attr_setscope(&pth_attrs, PTHREAD_SCOPE_SYSTEM);
++#endif
+
+ if ((err = pthread_create (&stream->video_thread,
+ &pth_attrs, video_decoder_loop, stream)) != 0) {