From 7cc370b0bfb3cc2b1da79d405203336f119269ec Mon Sep 17 00:00:00 2001 From: Christian Schaller Date: Thu, 27 Jun 2002 21:35:56 +0000 Subject: [PATCH] Fixes suggested by thomasvs to get rhythmbox working with basic threads Original commit message from CVS: Fixes suggested by thomasvs to get rhythmbox working with basic threads - int res; + int res = 0; - res = munmap ((void *) thread, COTHREAD_STACKSIZE); +/* res = munmap ((void *) thread, COTHREAD_STACKSIZE); */ --- gst/cothreads.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gst/cothreads.c b/gst/cothreads.c index 76977c0d8e..d26ab5792e 100644 --- a/gst/cothreads.c +++ b/gst/cothreads.c @@ -267,7 +267,7 @@ cothread_destroy (cothread_state *thread) else { /* this doesn't seem to work very well */ /* munmap ((void *) thread, COTHREAD_STACKSIZE); */ - int res; + int res = 0; GST_DEBUG (GST_CAT_COTHREADS, "unmap cothread slot stack from %p to %p (size %ld)", @@ -275,7 +275,7 @@ cothread_destroy (cothread_state *thread) (long) COTHREAD_STACKSIZE); GST_DEBUG (GST_CAT_COTHREADS, "doing an munmap at %p of size %d\n", thread, COTHREAD_STACKSIZE); - res = munmap ((void *) thread, COTHREAD_STACKSIZE); +/* res = munmap ((void *) thread, COTHREAD_STACKSIZE); */ if (res != 0) { switch (res)