make sure cothread->priv is NULL when uninited because we now check it (added debuggi...
authorBenjamin Otte <otte@gnome.org>
Sun, 24 Feb 2002 19:08:30 +0000 (19:08 +0000)
committerBenjamin Otte <otte@gnome.org>
Sun, 24 Feb 2002 19:08:30 +0000 (19:08 +0000)
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
gst/gstbin.c

index aa1af18..022168b 100644 (file)
@@ -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 */
 
index dbd3159..840f3c8 100644 (file)
@@ -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);