summaryrefslogtreecommitdiffstats
path: root/multimedia/gstreamer
diff options
context:
space:
mode:
authormarcus <marcus@df743ca5-7f9a-e211-a948-0013205c9059>2003-01-30 06:18:43 +0800
committermarcus <marcus@df743ca5-7f9a-e211-a948-0013205c9059>2003-01-30 06:18:43 +0800
commit8d4d787db353a844879c0577dff296597f40dfa3 (patch)
treefab73fb0802eab6d32eed664fe21d49c398dc6a7 /multimedia/gstreamer
parent6615c4555b40502705421a0c3255b770af764f91 (diff)
downloadmarcuscom-ports-8d4d787db353a844879c0577dff296597f40dfa3.tar
marcuscom-ports-8d4d787db353a844879c0577dff296597f40dfa3.tar.gz
marcuscom-ports-8d4d787db353a844879c0577dff296597f40dfa3.tar.bz2
marcuscom-ports-8d4d787db353a844879c0577dff296597f40dfa3.tar.lz
marcuscom-ports-8d4d787db353a844879c0577dff296597f40dfa3.tar.xz
marcuscom-ports-8d4d787db353a844879c0577dff296597f40dfa3.tar.zst
marcuscom-ports-8d4d787db353a844879c0577dff296597f40dfa3.zip
Add back the cothreads patch that should fix the coredumps seen in
gst-thumbnail. Reported by: Franz Klammer <klammer@webonaut.com> git-svn-id: svn://creme-brulee.marcuscom.com/ports/trunk@483 df743ca5-7f9a-e211-a948-0013205c9059
Diffstat (limited to 'multimedia/gstreamer')
-rw-r--r--multimedia/gstreamer/Makefile1
-rw-r--r--multimedia/gstreamer/files/patch-gst::cothreads.c25
2 files changed, 26 insertions, 0 deletions
diff --git a/multimedia/gstreamer/Makefile b/multimedia/gstreamer/Makefile
index 99e6c1b63..bcb747b26 100644
--- a/multimedia/gstreamer/Makefile
+++ b/multimedia/gstreamer/Makefile
@@ -7,6 +7,7 @@
PORTNAME= gstreamer
PORTVERSION= 0.5.2
+PORTREVISION= 1
CATEGORIES= multimedia
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= ${PORTNAME}
diff --git a/multimedia/gstreamer/files/patch-gst::cothreads.c b/multimedia/gstreamer/files/patch-gst::cothreads.c
new file mode 100644
index 000000000..70def6f13
--- /dev/null
+++ b/multimedia/gstreamer/files/patch-gst::cothreads.c
@@ -0,0 +1,25 @@
+--- gst/cothreads.c.orig Tue Dec 31 23:28:32 2002
++++ gst/cothreads.c Mon Jan 13 19:31:54 2003
+@@ -37,16 +37,20 @@
+ #include "gstlog.h"
+ #include "gstutils.h"
+
++#ifdef HAVE_MAKECONTEXT
++#include <ucontext.h>
++#endif
++
+ /* older glibc's have MAP_ANON instead of MAP_ANONYMOUS */
+ #ifndef MAP_ANONYMOUS
+ #define MAP_ANONYMOUS MAP_ANON
+ #endif
+
+-#define STACK_SIZE 0x200000
++#define STACK_SIZE 0x100000
+
+ #define COTHREAD_MAGIC_NUMBER 0xabcdef
+
+-#define COTHREAD_MAXTHREADS 16
++#define COTHREAD_MAXTHREADS 8
+ #define COTHREAD_STACKSIZE (STACK_SIZE/COTHREAD_MAXTHREADS)
+
+ static void cothread_destroy (cothread_state *cothread);