parse: Add unit test for array parsing in capsfilters

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/4181>
This commit is contained in:
Sebastian Dröge 2023-03-16 10:56:13 +02:00 committed by GStreamer Marge Bot
parent e4a26238a0
commit 85b0b343db

View file

@ -111,6 +111,10 @@ static const gchar *test_lines[] = {
"fakesrc : video/x-all : fakesink", /* linking all matching pads with filter */
"fakesrc ! video/x-all : fakesink", /* linking all matching pads with filter */
"fakesrc : video/x-all ! fakesink", /* linking all matching pads with filter */
"fakesrc ! audio/x-opus, channel-mapping=(int)<0, 1> ! fakesink silent=true", /* array in capsfilter */
"fakesrc ! audio/x-opus, channel-mapping=(int)<0,\\ 1> ! fakesink silent=true", /* array in capsfilter with escaped spaces */
"fakesrc ! capsfilter caps=\"audio/x-opus, channel-mapping=(int)<0, 1>\" ! fakesink silent=true", /* array in explicit capsfilter */
"fakesrc ! capsfilter caps=\"audio/x-opus, channel-mapping=(int)<0,\\ 1>\" ! fakesink silent=true", /* array in explicit capsfilter with escaped spaces */
NULL
};