From ab45f4c93029939137020e5ed96ff4829df23fd2 Mon Sep 17 00:00:00 2001 From: Erik Walthinsen Date: Fri, 24 Nov 2000 22:28:19 +0000 Subject: [PATCH] Fixed a dumb mistake: in gst_element_set_loop_function, it was forcing the cothread's entry function to change. This ... Original commit message from CVS: Fixed a dumb mistake: in gst_element_set_loop_function, it was forcing the cothread's entry function to change. This is totally wrong, the create_plan function in GstBin is responsible for setting that to its own internal helper function. Code removed outright... --- gst/gstelement.c | 6 ------ 1 file changed, 6 deletions(-) diff --git a/gst/gstelement.c b/gst/gstelement.c index 036f6ecb2b..9a565145da 100644 --- a/gst/gstelement.c +++ b/gst/gstelement.c @@ -791,10 +791,4 @@ gst_element_set_loop_function(GstElement *element, /* set the NEW_LOOPFUNC flag so everyone knows to go try again */ GST_FLAG_SET(element,GST_ELEMENT_NEW_LOOPFUNC); - - /* if there's a threadstate, reset the function pointer */ - if (element->threadstate != NULL) - // note that this casts a GstElement * to a char **. Ick. - cothread_setfunc (element->threadstate, gst_element_loopfunc_wrapper, - 0, (char **)element); }