mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-22 15:18:21 +00:00
gst-inspect: add G_PARAM_DEPRECATED to known flags
Display 'deprecated' instead of flag value when using G_PARAM_DEPRECATED in element properties. https://bugzilla.gnome.org/show_bug.cgi?id=739518
This commit is contained in:
parent
5b17a69079
commit
c2390c8943
1 changed files with 7 additions and 3 deletions
|
@ -245,9 +245,9 @@ flags_to_string (GFlagsValue * vals, guint flags)
|
||||||
#define KNOWN_PARAM_FLAGS \
|
#define KNOWN_PARAM_FLAGS \
|
||||||
(G_PARAM_CONSTRUCT | G_PARAM_CONSTRUCT_ONLY | \
|
(G_PARAM_CONSTRUCT | G_PARAM_CONSTRUCT_ONLY | \
|
||||||
G_PARAM_LAX_VALIDATION | G_PARAM_STATIC_STRINGS | \
|
G_PARAM_LAX_VALIDATION | G_PARAM_STATIC_STRINGS | \
|
||||||
G_PARAM_READABLE | G_PARAM_WRITABLE | GST_PARAM_CONTROLLABLE | \
|
G_PARAM_READABLE | G_PARAM_WRITABLE | G_PARAM_DEPRECATED | \
|
||||||
GST_PARAM_MUTABLE_PLAYING | GST_PARAM_MUTABLE_PAUSED | \
|
GST_PARAM_CONTROLLABLE | GST_PARAM_MUTABLE_PLAYING | \
|
||||||
GST_PARAM_MUTABLE_READY)
|
GST_PARAM_MUTABLE_PAUSED | GST_PARAM_MUTABLE_READY)
|
||||||
|
|
||||||
static void
|
static void
|
||||||
print_element_properties_info (GstElement * element)
|
print_element_properties_info (GstElement * element)
|
||||||
|
@ -290,6 +290,10 @@ print_element_properties_info (GstElement * element)
|
||||||
g_print ("%s%s", (first_flag) ? "" : ", ", _("writable"));
|
g_print ("%s%s", (first_flag) ? "" : ", ", _("writable"));
|
||||||
first_flag = FALSE;
|
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) {
|
if (param->flags & GST_PARAM_CONTROLLABLE) {
|
||||||
g_print (", %s", _("controllable"));
|
g_print (", %s", _("controllable"));
|
||||||
first_flag = FALSE;
|
first_flag = FALSE;
|
||||||
|
|
Loading…
Reference in a new issue