mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-07 13:30:09 -05:00
examples: improve examples
This commit is contained in:
parent
b9171b5e57
commit
d6f40cefa6
4 changed files with 33 additions and 13 deletions
|
|
@ -216,7 +216,14 @@ static void on_state_changed(void *_data, enum pw_remote_state old, enum pw_remo
|
|||
printf("remote state: \"%s\"\n",
|
||||
pw_remote_state_as_string(state));
|
||||
|
||||
data->stream = pw_stream_new(remote, "video-src", NULL);
|
||||
data->stream = pw_stream_new(remote,
|
||||
"video-src",
|
||||
pw_properties_new(
|
||||
"media.class", "Video/Source",
|
||||
PW_NODE_PROP_MEDIA, "Video",
|
||||
PW_NODE_PROP_CATEGORY, "Source",
|
||||
PW_NODE_PROP_ROLE, "Screen",
|
||||
NULL));
|
||||
|
||||
params[0] = spa_pod_builder_object(&b,
|
||||
data->t->param.idEnumFormat, data->t->spa_format,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue