From: Steve B. <sb...@us...> - 2001-09-29 09:53:10
|
Update of /cvsroot/gstreamer/gstreamer/gst In directory usw-pr-cvs1:/tmp/cvs-serv26068 Modified Files: gstelementfactory.c Log Message: factory needs a ref to the padtemplate so that the padtemplate doesn't disappear when the plugin element is unreffed Index: gstelementfactory.c =================================================================== RCS file: /cvsroot/gstreamer/gstreamer/gst/gstelementfactory.c,v retrieving revision 1.48 retrieving revision 1.49 diff -u -d -r1.48 -r1.49 --- gstelementfactory.c 2001/09/28 19:16:02 1.48 +++ gstelementfactory.c 2001/09/29 09:53:07 1.49 @@ -315,7 +315,9 @@ g_return_if_fail(templ != NULL); padtemplates = factory->padtemplates; - + + gst_object_ref (GST_OBJECT (templ)); + while (padtemplates) { GstPadTemplate *oldtempl = GST_PADTEMPLATE (padtemplates->data); |