[Bug 778349] decodebin2 GstAutoplugSelectResult type doesn't exported

GStreamer (GNOME Bugzilla) bugzilla at gnome.org
Wed Feb 8 18:23:23 UTC 2017


https://bugzilla.gnome.org/show_bug.cgi?id=778349

--- Comment #2 from Olivier Blin <gnome at blino.org> ---
This is part of the public API and documentation of decodebin, so there should
be a way to use it without hardcoding values or copying header files.

Is there a recommended way to use the GEnum API?
Is the following fine?

GType type = g_type_from_name ("GstAutoplugSelectResult");
GEnumClass *enum_class = g_type_class_ref (type);
GEnumValue *eval = g_enum_get_value_by_name (enum_class,
"GST_AUTOPLUG_SELECT_TRY");
g_type_class_unref (enum_class);

-- 
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