mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-18 04:05:34 +00:00
pad-monitor: fix caps field type checks
The type is GstValueList and not GArray
This commit is contained in:
parent
9d7f9cfa54
commit
16b1d750c8
1 changed files with 8 additions and 7 deletions
|
@ -119,13 +119,13 @@ gst_qa_pad_monitor_check_raw_video_caps_complete (GstQaPadMonitor * monitor,
|
||||||
|
|
||||||
if (gst_structure_has_name (structure, "video/x-raw-yuv")) {
|
if (gst_structure_has_name (structure, "video/x-raw-yuv")) {
|
||||||
CHECK_FIELD_TYPE (monitor, structure, "format", GST_TYPE_FOURCC,
|
CHECK_FIELD_TYPE (monitor, structure, "format", GST_TYPE_FOURCC,
|
||||||
G_TYPE_ARRAY);
|
GST_TYPE_LIST);
|
||||||
|
|
||||||
} else if (gst_structure_has_name (structure, "video/x-raw-rgb")) {
|
} else if (gst_structure_has_name (structure, "video/x-raw-rgb")) {
|
||||||
CHECK_FIELD_TYPE (monitor, structure, "bpp", G_TYPE_INT, G_TYPE_ARRAY);
|
CHECK_FIELD_TYPE (monitor, structure, "bpp", G_TYPE_INT, GST_TYPE_LIST);
|
||||||
CHECK_FIELD_TYPE (monitor, structure, "depth", G_TYPE_INT, G_TYPE_ARRAY);
|
CHECK_FIELD_TYPE (monitor, structure, "depth", G_TYPE_INT, GST_TYPE_LIST);
|
||||||
CHECK_FIELD_TYPE (monitor, structure, "endianness", G_TYPE_INT,
|
CHECK_FIELD_TYPE (monitor, structure, "endianness", G_TYPE_INT,
|
||||||
G_TYPE_ARRAY);
|
GST_TYPE_LIST);
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -134,12 +134,13 @@ static void
|
||||||
gst_qa_pad_monitor_check_raw_audio_caps_complete (GstQaPadMonitor * monitor,
|
gst_qa_pad_monitor_check_raw_audio_caps_complete (GstQaPadMonitor * monitor,
|
||||||
GstStructure * structure)
|
GstStructure * structure)
|
||||||
{
|
{
|
||||||
CHECK_FIELD_TYPE (monitor, structure, "rate", G_TYPE_INT, GST_TYPE_INT_RANGE);
|
CHECK_FIELD_TYPE (monitor, structure, "rate", G_TYPE_INT, GST_TYPE_LIST);
|
||||||
CHECK_FIELD_TYPE (monitor, structure, "channels", G_TYPE_INT,
|
CHECK_FIELD_TYPE (monitor, structure, "channels", G_TYPE_INT,
|
||||||
GST_TYPE_INT_RANGE);
|
GST_TYPE_INT_RANGE);
|
||||||
CHECK_FIELD_TYPE (monitor, structure, "endianness", G_TYPE_INT, G_TYPE_ARRAY);
|
CHECK_FIELD_TYPE (monitor, structure, "endianness", G_TYPE_INT,
|
||||||
|
GST_TYPE_LIST);
|
||||||
CHECK_FIELD_TYPE (monitor, structure, "channel-layout", G_TYPE_STRING,
|
CHECK_FIELD_TYPE (monitor, structure, "channel-layout", G_TYPE_STRING,
|
||||||
G_TYPE_ARRAY);
|
GST_TYPE_LIST);
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
|
|
Loading…
Reference in a new issue