mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-07-07 07:05:52 +00:00
34 lines
814 B
Plaintext
34 lines
814 B
Plaintext
meta,
|
|
handles-states=true,
|
|
args = {
|
|
"videotestsrc pattern=ball name=s ! fakesink",
|
|
}
|
|
|
|
foreach, pattern=<green, blue>,
|
|
actions = {
|
|
[set-properties, s::pattern="$(pattern)"],
|
|
}
|
|
|
|
priv_check-action-type-calls, type=set-properties, n=2
|
|
|
|
check-properties, s::pattern="Blue"
|
|
|
|
foreach, pattern=<
|
|
# We can also pass int values (which works for enums)
|
|
1, 3, 5, # green
|
|
>,
|
|
actions = {
|
|
[set-properties, s::pattern="$(pattern)"],
|
|
}
|
|
|
|
priv_check-action-type-calls, type=set-properties, n=5
|
|
check-properties, s::pattern="Green"
|
|
|
|
foreach, pattern=<blue, white, black>,
|
|
actions = {
|
|
[set-properties, s::pattern="$(pattern)"],
|
|
}
|
|
priv_check-action-type-calls, type=set-properties, n=8
|
|
check-properties, s::pattern="100\%\ Black"
|
|
stop
|