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)
This commit is contained in:
Benjamin Otte 2002-02-24 19:08:30 +00:00
parent 1952e9d714
commit aadf99137f
2 changed files with 4 additions and 0 deletions

View 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 */

View 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);