openbsd-ports/multimedia/xine-lib/patches/patch-src_xine-engine_audio_decoder_c
jakemsr eb44a52c7c update to 1.1.9.1
security fix: CVE-2008-0225 - heap-based buffer overflow in libreal (RTSP)

also incorporates post release bug fix in WMV decoding

from brad, thanks
2008-01-15 00:36:46 +00:00

27 lines
1018 B
Plaintext

$OpenBSD: patch-src_xine-engine_audio_decoder_c,v 1.6 2008/01/15 00:36:46 jakemsr Exp $
--- src/xine-engine/audio_decoder.c.orig Tue Jan 1 08:30:09 2008
+++ src/xine-engine/audio_decoder.c Wed Jan 9 01:50:22 2008
@@ -461,7 +461,9 @@ static void *audio_decoder_loop (void *stream_gen) {
int _x_audio_decoder_init (xine_stream_t *stream) {
pthread_attr_t pth_attrs;
+#if !defined(__OpenBSD__)
struct sched_param pth_params;
+#endif
int err;
if (stream->audio_out == NULL) {
@@ -499,10 +501,12 @@ int _x_audio_decoder_init (xine_stream_t *stream) {
*/
pthread_attr_init(&pth_attrs);
+#if !defined(__OpenBSD__)
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,