From 4106ad4ae60480049921bec2958047a313bc9cbf Mon Sep 17 00:00:00 2001 From: Daniel Morin Date: Tue, 27 Aug 2024 14:50:56 -0400 Subject: [PATCH] doc: correct delimiters documentation - "<>" are delimiters for GST_TYPE_ARRAY and "{}" are delimiters for GST_TYPE_LIST. Part-of: --- girs/Gst-1.0.gir | 8 ++++---- subprojects/gstreamer/gst/gststructure.c | 8 ++++---- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/girs/Gst-1.0.gir b/girs/Gst-1.0.gir index 52748beb10..743ef5d9b4 100644 --- a/girs/Gst-1.0.gir +++ b/girs/Gst-1.0.gir @@ -41356,14 +41356,14 @@ values are explicitly typed. Some types have special delimiters: -- [GstValueArray](GST_TYPE_ARRAY) are inside curly brackets (`{` and `}`). - For example `a-structure, array={1, 2, 3}` +- [GstValueArray](GST_TYPE_ARRAY) are inside "less and greater than" (`<` and + `>`). For example `a-structure, array=<1, 2, 3> - Ranges are inside brackets (`[` and `]`). For example `a-structure, range=[1, 6, 2]` 1 being the min value, 6 the maximum and 2 the step. To specify a #GST_TYPE_INT64_RANGE you need to explicitly specify it like: `a-structure, a-int64-range=(gint64) [1, 5]` -- [GstValueList](GST_TYPE_LIST) are inside "less and greater than" (`<` and - `>`). For example `a-structure, list=<1, 2, 3> +- [GstValueList](GST_TYPE_LIST) are inside curly brackets (`{` and `}`). + For example `a-structure, list={1, 2, 3}` Structures are delimited either by a null character `\0` or a semicolon `;` the latter allowing to store multiple structures in the same string (see diff --git a/subprojects/gstreamer/gst/gststructure.c b/subprojects/gstreamer/gst/gststructure.c index 5a2957efec..e74db51af8 100644 --- a/subprojects/gstreamer/gst/gststructure.c +++ b/subprojects/gstreamer/gst/gststructure.c @@ -90,14 +90,14 @@ * * Some types have special delimiters: * - * - [GstValueArray](GST_TYPE_ARRAY) are inside curly brackets (`{` and `}`). - * For example `a-structure, array={1, 2, 3}` + * - [GstValueArray](GST_TYPE_ARRAY) are inside "less and greater than" (`<` and + * `>`). For example `a-structure, array=<1, 2, 3> * - Ranges are inside brackets (`[` and `]`). For example `a-structure, * range=[1, 6, 2]` 1 being the min value, 6 the maximum and 2 the step. To * specify a #GST_TYPE_INT64_RANGE you need to explicitly specify it like: * `a-structure, a-int64-range=(gint64) [1, 5]` - * - [GstValueList](GST_TYPE_LIST) are inside "less and greater than" (`<` and - * `>`). For example `a-structure, list=<1, 2, 3> + * - [GstValueList](GST_TYPE_LIST) are inside curly brackets (`{` and `}`). + * For example `a-structure, list={1, 2, 3}` * * Structures are delimited either by a null character `\0` or a semicolon `;` * the latter allowing to store multiple structures in the same string (see