tools: gst-inspect: add specific messages for CONSTRUCT_ONLY params

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/5407>
This commit is contained in:
François Laignel 2023-09-27 16:59:34 +02:00 committed by GStreamer Marge Bot
parent 7b5967d699
commit 324d5c6460

View file

@ -490,7 +490,10 @@ print_object_properties_info (GObject * obj, GObjectClass * obj_class,
RESET_COLOR);
first_flag = FALSE;
}
if (param->flags & GST_PARAM_MUTABLE_PLAYING) {
if (param->flags & G_PARAM_CONSTRUCT_ONLY) {
g_print (", %s%s%s", PROP_ATTR_VALUE_COLOR,
_("can be set only at object construction time"), RESET_COLOR);
} else if (param->flags & GST_PARAM_MUTABLE_PLAYING) {
g_print (", %s%s%s", PROP_ATTR_VALUE_COLOR,
_("changeable in NULL, READY, PAUSED or PLAYING state"), RESET_COLOR);
} else if (param->flags & GST_PARAM_MUTABLE_PAUSED) {