Re: Fixing the Gst::Message classes



On Tue, 2007-12-11 at 18:27 +0100, Murray Cumming wrote:
> On Tue, 2007-12-11 at 09:53 -0500, José Alburquerque wrote:  
> > I managed to look at wrap.cc and wrap.h.  I haven't made modifications 
> > to Gst::MiniObject yet because it was a work in progress.  I didn't get 
> > a chance to compile, but the logic may be ok so here are wrap.h and wrap.cc.

That's done and checked in. We now have a Gst::wrap() system that is
completely independent of Glib::wrap(), for use with
Gst::MiniObject-derived classes. It works like Glib::wrap() but will not
return the same C++ instance when called twice with the same GObject
instance. Hopefully it will be useful.

However, this is not actually useful for the Gst::Message-derived
classes, because there are no such derived GTypes in gstreamer. We made
the C++ classes up. I filed a bug about this in gstreamer but it's
highly unlikely to change:
http://bugzilla.gnome.org/show_bug.cgi?id=503085

So we probably need yet another wrap() function, which could be a simple
hard-coded switch/case as a static method of Gst::Message. Would you
like to try that?

-- 
murrayc murrayc com
www.murrayc.com
www.openismus.com



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