[Bug 679181] New: PyGI equivalent of URIHandler subclass: do_get_type_full(), do_get_protocols_full()?
GStreamer (bugzilla.gnome.org)
bugzilla at gnome.org
Sat Jun 30 00:57:52 PDT 2012
https://bugzilla.gnome.org/show_bug.cgi?id=679181
GStreamer | gstreamer (core) | git
Summary: PyGI equivalent of URIHandler subclass:
do_get_type_full(), do_get_protocols_full()?
Classification: Platform
Product: GStreamer
Version: git
OS/Version: Linux
Status: UNCONFIRMED
Severity: normal
Priority: Normal
Component: gstreamer (core)
AssignedTo: gstreamer-bugs at lists.freedesktop.org
ReportedBy: jderose at novacut.com
QAContact: gstreamer-bugs at lists.freedesktop.org
GNOME version: ---
With gst-python you can do something like this to add an element with a custom
URI handler:
class DmediaSrc(gst.Bin, gst.URIHandler):
@classmethod
def do_get_type_full(cls):
return gst.URI_SRC
@classmethod
def do_get_protocols_full(cls):
return ['dmedia']
def do_set_uri(self, uri):
if not uri.startswith('dmedia://'):
return False
self.uri = uri
return True
def do_get_uri(self):
return self.uri
I know in 0.10 there was some special magic in the do_get_*_full() methods, and
perhaps the issue is there isn't the equivalent in PyGI.
Here's my working custom 0.10 element with URI handler:
http://bazaar.launchpad.net/~jderose/+junk/gst-examples/view/head:/plugin-0.10
Here's what I'm trying to do with 1.0:
http://bazaar.launchpad.net/~jderose/+junk/gst-examples/view/head:/plugin-1.0
Thanks to help from Edward Hervey a while back, I can register my 1.0 plugin
and element, but as soon as I also subclass from Gst.URIHandler, things break.
do_get_protocols_full(), do_get_type_full() don't get called (although I wasn't
really expected them to be).
do_get_protocols(), do_get_type() don't get called either.
Am I missing something, or is this just not yet usable from PyGI?
--
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