[Bug 794298] New: Cannot inspect pad templates in GJS
GStreamer (GNOME Bugzilla)
bugzilla at gnome.org
Tue Mar 13 16:29:46 UTC 2018
https://bugzilla.gnome.org/show_bug.cgi?id=794298
Bug ID: 794298
Summary: Cannot inspect pad templates in GJS
Classification: Platform
Product: GStreamer
Version: 1.12.x
OS: Linux
Status: NEW
Severity: normal
Priority: Normal
Component: don't know
Assignee: gstreamer-bugs at lists.freedesktop.org
Reporter: dsboger at gmail.com
QA Contact: gstreamer-bugs at lists.freedesktop.org
GNOME version: ---
I'm trying to sketch a pipeline editor using GJS, but I'm hitting what seems to
be a binding issue. I've isolated a simple test below:
const Lang = imports.lang;
const Gst = imports.gi.Gst;
Gst.init(null);
let registry = Gst.Registry.get();
let elementFeatureList = registry.get_feature_list(Gst.ElementFactory);
elementFeatureList.forEach(Lang.bind(this, function(factory) {
let padTemplates = factory.get_static_pad_templates();
}));
This is giving the following error:
Gjs-WARNING **: JS ERROR: Error: Can't create a Javascript object for
StaticPadTemplate; no way to copy
Am I missing something? Thanks for your efforts!
--
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