summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
5b17a69)
Display 'deprecated' instead of flag value when using G_PARAM_DEPRECATED
in element properties.
https://bugzilla.gnome.org/show_bug.cgi?id=739518
#define KNOWN_PARAM_FLAGS \
(G_PARAM_CONSTRUCT | G_PARAM_CONSTRUCT_ONLY | \
G_PARAM_LAX_VALIDATION | G_PARAM_STATIC_STRINGS | \
#define KNOWN_PARAM_FLAGS \
(G_PARAM_CONSTRUCT | G_PARAM_CONSTRUCT_ONLY | \
G_PARAM_LAX_VALIDATION | G_PARAM_STATIC_STRINGS | \
- G_PARAM_READABLE | G_PARAM_WRITABLE | GST_PARAM_CONTROLLABLE | \
- GST_PARAM_MUTABLE_PLAYING | GST_PARAM_MUTABLE_PAUSED | \
- GST_PARAM_MUTABLE_READY)
+ G_PARAM_READABLE | G_PARAM_WRITABLE | G_PARAM_DEPRECATED | \
+ GST_PARAM_CONTROLLABLE | GST_PARAM_MUTABLE_PLAYING | \
+ GST_PARAM_MUTABLE_PAUSED | GST_PARAM_MUTABLE_READY)
static void
print_element_properties_info (GstElement * element)
static void
print_element_properties_info (GstElement * element)
g_print ("%s%s", (first_flag) ? "" : ", ", _("writable"));
first_flag = FALSE;
}
g_print ("%s%s", (first_flag) ? "" : ", ", _("writable"));
first_flag = FALSE;
}
+ if (param->flags & G_PARAM_DEPRECATED) {
+ g_print ("%s%s", (first_flag) ? "" : ", ", _("deprecated"));
+ first_flag = FALSE;
+ }
if (param->flags & GST_PARAM_CONTROLLABLE) {
g_print (", %s", _("controllable"));
first_flag = FALSE;
if (param->flags & GST_PARAM_CONTROLLABLE) {
g_print (", %s", _("controllable"));
first_flag = FALSE;