From aadf99137f4543465c25ae4cff0bec26fd733342 Mon Sep 17 00:00:00 2001 From: Benjamin Otte Date: Sun, 24 Feb 2002 19:08:30 +0000 Subject: [PATCH] make sure cothread->priv is NULL when uninited because we now check it (added debugging line to gst_bin_remove while ... Original commit message from CVS: make sure cothread->priv is NULL when uninited because we now check it (added debugging line to gst_bin_remove while debugging) --- gst/cothreads.c | 2 ++ gst/gstbin.c | 2 ++ 2 files changed, 4 insertions(+) diff --git a/gst/cothreads.c b/gst/cothreads.c index aa1af18ea2..022168b339 100644 --- a/gst/cothreads.c +++ b/gst/cothreads.c @@ -92,6 +92,7 @@ cothread_context_init (void) ctx->threads[0]->func = NULL; ctx->threads[0]->argc = 0; ctx->threads[0]->argv = NULL; + ctx->threads[0]->priv = NULL; ctx->threads[0]->flags = COTHREAD_STARTED; ctx->threads[0]->sp = (void *) CURRENT_STACK_FRAME; ctx->threads[0]->pc = 0; @@ -185,6 +186,7 @@ cothread_create (cothread_context *ctx) thread->ctx = ctx; thread->threadnum = slot; thread->flags = 0; + thread->priv = NULL; thread->sp = ((guchar *) thread + COTHREAD_STACKSIZE); thread->top_sp = thread->sp; /* for debugging purposes to detect stack overruns */ diff --git a/gst/gstbin.c b/gst/gstbin.c index dbd3159800..840f3c803d 100644 --- a/gst/gstbin.c +++ b/gst/gstbin.c @@ -434,6 +434,8 @@ gst_bin_remove (GstBin * bin, GstElement * element) gint state_idx = 0; GstElementState state; + GST_DEBUG_ELEMENT (GST_CAT_PARENTAGE, bin, "trying to remove child %s\n", GST_ELEMENT_NAME (element)); + g_return_if_fail (bin != NULL); g_return_if_fail (GST_IS_BIN (bin)); g_return_if_fail (element != NULL);