Wait for thread to exit before starting to free the
to_push list, otherwise thread might check the final
to_push->next node only after we've freed it already.
return TRUE;
}
-static void
+static gpointer
my_push_thread (MyPushInfo * pushinfo)
{
GList *tmp;
else
gst_pad_push (pushinfo->pad, GST_BUFFER (tmp->data));
}
+
+ GST_INFO ("leaving thread");
+ return NULL;
}
GST_START_TEST (test_basic)
fail_if (expected != NULL);
+ /* wait for thread to exit before freeing things */
+ g_thread_join (thread);
+
/* Cleanup */
g_list_free (to_push);
gst_element_release_request_pad (synchr, sinkpad);