I think i found the problem, it was a missing reference (not) taken
when creating the element; i've fixed it in current gstreamermm trunk
SVN, although i might not have yet properly updated it with your patch
(we were moving our SVN around and i had problems committing).
Could you try with changing inside element.cg from:
Glib::RefPtr<Element>
Element::create(const Glib::ustring& factoryname, const Glib::ustring& name)
{
GstElement * element = gst_element_factory_make(factoryname.c_str(),
name.c_str());
return wrap(element, false);
}
to:
Glib::RefPtr<Element>
Element::create(const Glib::ustring& factoryname, const Glib::ustring& name)
{
GstElement * element = gst_element_factory_make(factoryname.c_str(),
name.c_str());
return wrap(element, true);
}
(Note the change at wrap() from false to true)
-- Milosz