[gstreamer-bugs] [Bug 339279] Subclassing from interfaces isn't always possible

GStreamer (bugzilla.gnome.org) bugzilla-daemon at bugzilla.gnome.org
Fri Apr 21 16:08:32 PDT 2006


Do not reply to this via email (we are currently unable to handle email
responses and they get discarded).  You can add comments to this bug at
http://bugzilla.gnome.org/show_bug.cgi?id=339279
 GStreamer | gst-python | Ver: HEAD CVS





------- Comment #4 from Jason Toffaletti  2006-04-21 23:08 UTC -------
Created an attachment (id=64079)
 --> (http://bugzilla.gnome.org/attachment.cgi?id=64079&action=view)
first attempt at virtual overrides

I took a stab at step 3, but I ran into problems.

1) GstURIHandler has two methods (get_protocols and get_type) which don't take
any arguments according to:

http://gstreamer.freedesktop.org/data/doc/gstreamer/head/gstreamer/html/gstreamer-GstUriHandler.html#GstURIHandlerInterface

which makes it difficult to implement an override.

2) codegen appears to ignore GstURIHandler.get_type overrides. The generated
code looks like this:

static void
__GstURIHandler__interface_init(GstURIHandlerInterface *iface)
{
    iface->get_protocols = _wrap_GstURIHandler__proxy_do_get_protocols;
    iface->get_uri = _wrap_GstURIHandler__proxy_do_get_uri;
    iface->set_uri = _wrap_GstURIHandler__proxy_do_set_uri;
}

notice iface->get_type is missing. i tried changing the names in gst.defs and
gst.overrides to get_uri_type and that worked besides the obvious fact that
GstURIHandler doesn't have a get_uri_type function.


-- 
Configure bugmail: http://bugzilla.gnome.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.




More information about the Gstreamer-bugs mailing list