pkgsrc/multimedia/xine-lib/patches/patch-ab
jmmv ce3be8b79d Update to 1rc3a. Summary of changes since rc0a:
- Fixed some bugs which caused xine to segfault under certain conditions,
  and a long-standing issue that would make xine hang with the NPTL
  implementation in Linux kernel 2.6.
- Stabilized core engine and much improved subtitles.
- Built-in VCD navigation, XvMC support and better handling of funny filenames.
- A security hole regarding the "#save" MRL option has been closed.
- Added a feature: append "#save:filename" to an MRL to save the stream during
  playback.
- Lots of bugfixes.
2004-03-11 17:26:02 +00:00

27 lines
1,022 B
Text

$NetBSD: patch-ab,v 1.2 2004/03/11 17:26:02 jmmv Exp $
--- src/xine-engine/audio_decoder.c.orig 2003-12-12 20:30:51.000000000 +0100
+++ src/xine-engine/audio_decoder.c
@@ -338,7 +338,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) {
@@ -364,10 +366,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
if ((err = pthread_create (&stream->audio_thread,
&pth_attrs, audio_decoder_loop, stream)) != 0) {