projects
/
platform
/
upstream
/
gstreamer.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e04c669
)
preset: Do not save deprecated properties
author
Thibault Saunier
<tsaunier@gnome.org>
Fri, 3 Nov 2017 15:23:50 +0000
(12:23 -0300)
committer
Thibault Saunier
<tsaunier@gnome.org>
Sun, 26 Nov 2017 15:53:54 +0000
(12:53 -0300)
It will g_warn upon desarialization and we should not use
those anyway.
https://bugzilla.gnome.org/show_bug.cgi?id=789871
gst/gstpreset.c
patch
|
blob
|
history
diff --git
a/gst/gstpreset.c
b/gst/gstpreset.c
index
795bfd7
..
22509f6
100644
(file)
--- a/
gst/gstpreset.c
+++ b/
gst/gstpreset.c
@@
-856,6
+856,12
@@
gst_preset_default_save_preset (GstPreset * preset, const gchar * name)
continue;
}
+ if (property->flags & G_PARAM_DEPRECATED) {
+ GST_INFO_OBJECT (preset, "Not saving property %s as it is deprecated",
+ property->name);
+ continue;
+ }
+
g_value_init (&gvalue, property->value_type);
if (is_child_proxy) {
gst_child_proxy_get_property ((GstChildProxy *) preset, props[i],