[Bug 686572] metadata is not set for inherited elements in python using pygi

GStreamer (bugzilla.gnome.org) bugzilla at gnome.org
Sun Mar 3 12:31:24 PST 2013


https://bugzilla.gnome.org/show_bug.cgi?id=686572
  GStreamer | gstreamer (core) | 1.x

Tim-Philipp Müller <t.i.m> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEEDINFO
                 CC|                            |t.i.m at zen.co.uk

--- Comment #2 from Tim-Philipp Müller <t.i.m at zen.co.uk> 2013-03-03 20:31:19 UTC ---
I don't know if this is a bug in GStreamer, it seems like a py-gi issue to me.

Apparently this can be hacked around though (courtesy of Alessandro):

from gi.repository import GObject, Gst
Gst.init(None)

def get_element_class(klass):
    element_class = GObject.type_class_peek(klass.__gtype__)
    element_class.__class__ = Gst.ElementClass
    return element_class

class E(Gst.Element):
    pass

get_element_class(E).set_metadata('longname', 'classification', 'description',
'author')
E.register(None, 'foo', Gst.Rank.NONE, E.__gtype__)

print Gst.ElementFactory.make('foo')


Move as enhancement to gst-python or bug to py-gi/introspection?

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


More information about the gstreamer-bugs mailing list