Original commit message from CVS:
cleanups
This commit is contained in:
Thomas Vander Stichele 2002-11-28 21:24:01 +00:00
parent 63a4cb67c2
commit 18f9761afc

View file

@ -74,11 +74,14 @@ static void gst_thread_dispose (GObject *object);
static void gst_thread_set_property (GObject *object, guint prop_id, const GValue *value, GParamSpec *pspec);
static void gst_thread_get_property (GObject *object, guint prop_id, GValue *value, GParamSpec *pspec);
static GstElementStateReturn gst_thread_change_state (GstElement *element);
static
GstElementStateReturn gst_thread_change_state (GstElement *element);
#ifndef GST_DISABLE_LOADSAVE
static xmlNodePtr gst_thread_save_thyself (GstObject *object, xmlNodePtr parent);
static void gst_thread_restore_thyself (GstObject *object, xmlNodePtr self);
static xmlNodePtr gst_thread_save_thyself (GstObject *object,
xmlNodePtr parent);
static void gst_thread_restore_thyself (GstObject *object,
xmlNodePtr self);
#endif
static void* gst_thread_main_loop (void *arg);
@ -109,18 +112,15 @@ gst_thread_get_type(void) {
if (!thread_type) {
static const GTypeInfo thread_info = {
sizeof(GstThreadClass),
NULL,
NULL,
(GClassInitFunc)gst_thread_class_init,
NULL,
NULL,
sizeof (GstThreadClass), NULL, NULL,
(GClassInitFunc) gst_thread_class_init, NULL, NULL,
sizeof (GstThread),
4,
(GInstanceInitFunc) gst_thread_init,
NULL
};
thread_type = g_type_register_static(GST_TYPE_BIN, "GstThread", &thread_info, 0);
thread_type = g_type_register_static (GST_TYPE_BIN, "GstThread",
&thread_info, 0);
}
return thread_type;
}
@ -184,7 +184,7 @@ gst_thread_init (GstThread *thread)
thread->cond = g_cond_new ();
thread->ppid = getpid ();
thread->thread_id = (GThread *) NULL;
thread->thread_id = (GThread *) NULL; /* set in NULL -> READLY */
thread->sched_policy = G_THREAD_PRIORITY_NORMAL;
thread->priority = 0;
thread->stack = NULL;
@ -338,7 +338,8 @@ gst_thread_change_state (GstElement * element)
if (g_thread_equal (self, thread->thread_id)) {
GST_DEBUG (GST_CAT_THREAD,
"no sync(" GST_DEBUG_THREAD_FORMAT "): setting own thread's state to spinning",
"no sync(" GST_DEBUG_THREAD_FORMAT "): "
"setting own thread's state to spinning",
GST_DEBUG_THREAD_ARGS (thread->pid));
return gst_thread_update_state (thread);
}