Re: <gstmm.h> include errors



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


2007/11/18, José Alburquerque <jaalburquerque cox net>:
> José Alburquerque wrote:
> > Here's the compilation, execution and output:
> >
> > [06:25][jose sweety:~/Projects/Programming/C++/Tests]$ gcc -g
> > gstreamer-test.c `pkg-config --cflags --libs  gstreamer-0.10`
> > [06:29][jose sweety:~/Projects/Programming/C++/Tests]$ ./a.out
> > Successfully created element of type 'fakesrc'
> > [06:29][jose sweety:~/Projects/Programming/C++/Tests]$
> >
>
> I should also mention (in case this might make some difference) that I'm
> running a GNU/Linux lenny/sid system.  All my gstreamer packages show
> version 0.10.15-1, while glibmm shows version 2.14.2-1 and glib shows
> version 2.14.3-1.
>
> -Jose
>


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]