mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-10-29 05:40:27 -04:00
video-src: simplify the tag param construction
This commit is contained in:
parent
2ab773ce14
commit
e9c5ca5978
1 changed files with 3 additions and 3 deletions
|
|
@ -320,11 +320,11 @@ int main(int argc, char *argv[])
|
|||
|
||||
{
|
||||
struct spa_pod_frame f;
|
||||
struct spa_dict_item items[1];
|
||||
/* send a tag, output tags travel downstream */
|
||||
spa_tag_build_start(&b, &f, SPA_PARAM_Tag, SPA_DIRECTION_OUTPUT);
|
||||
items[0] = SPA_DICT_ITEM_INIT("my-tag-key", "my-special-tag-value");
|
||||
spa_tag_build_add_dict(&b, &SPA_DICT_INIT(items, 1));
|
||||
spa_tag_build_add_dict(&b,
|
||||
&SPA_DICT_ITEMS(
|
||||
SPA_DICT_ITEM("my-tag-key", "my-special-tag-value")));
|
||||
params[1] = spa_tag_build_end(&b, &f);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue