examples: improve examples

This commit is contained in:
Wim Taymans 2018-07-12 10:02:42 +02:00
parent b9171b5e57
commit d6f40cefa6
4 changed files with 33 additions and 13 deletions

View file

@ -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,