[Bug 750079] New: idea for dynamic caps types
GStreamer (GNOME Bugzilla)
bugzilla at gnome.org
Thu May 28 21:42:45 PDT 2015
https://bugzilla.gnome.org/show_bug.cgi?id=750079
Bug ID: 750079
Summary: idea for dynamic caps types
Classification: Platform
Product: GStreamer
Version: git master
OS: Linux
Status: NEW
Severity: enhancement
Priority: Normal
Component: gstreamer (core)
Assignee: gstreamer-bugs at lists.freedesktop.org
Reporter: thaytan at noraisin.net
QA Contact: gstreamer-bugs at lists.freedesktop.org
GNOME version: ---
Here's a patch for an idea to allow new types to be added to caps and pad
templates. In the past, it's been a problem that you can only use types from
GLib or GStreamer core sensibly in caps (especially pad templates), because
they need to be deserialised from the registry.
This patch adds a new registry feature GstDynamicTypeFactory, that allows for
registering a GType by name. If the name is encountered in a caps
string/structure during deserialisation, it triggers loading a plugin to
register the GType.
I'm using this in the stereoscopic branch to allow registration of the
'multiview-flags' caps field, which is a GstVideoMultiviewFlagsSet derived from
a GstFlagSet. Registering the type allows serialising/deserialising a
human-readable version of the flags, instead of just numeric values.
--
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