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...
This commit is contained in:
Erik Walthinsen 2000-11-24 22:28:19 +00:00
parent 9120d1bd43
commit ab45f4c930

View file

@ -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);
}