mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-21 05:26:23 +00:00
avcfg: add skip support to overrides system
https://bugzilla.gnome.org/show_bug.cgi?id=792900
This commit is contained in:
parent
b3dc5c2799
commit
9c0dd8ef60
1 changed files with 8 additions and 2 deletions
|
@ -219,8 +219,14 @@ install_opts (GObjectClass * gobject_class, const AVClass ** obj, guint prop_id,
|
|||
const gchar *name;
|
||||
|
||||
if (overrides && g_hash_table_contains (overrides, opt->name)) {
|
||||
name =
|
||||
gst_structure_get_name (g_hash_table_lookup (overrides, opt->name));
|
||||
gboolean skip;
|
||||
const GstStructure *s =
|
||||
(GstStructure *) g_hash_table_lookup (overrides, opt->name);
|
||||
|
||||
name = gst_structure_get_name (s);
|
||||
if (gst_structure_get_boolean (s, "skip", &skip) && skip) {
|
||||
continue;
|
||||
}
|
||||
} else {
|
||||
name = opt->name;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue