module-roc: fix properties

Actually set the right properties on the source and sink.

Not quite right because the pulseaudio ROC has a sink-input or a
playback stream in pipewire.

See #1538
This commit is contained in:
Wim Taymans 2021-08-30 23:27:51 +02:00
parent 9f57341699
commit d34c4facc0
3 changed files with 50 additions and 20 deletions

View file

@ -157,8 +157,8 @@ struct module *create_module_roc_source(struct impl *impl, const char *argument)
}
if ((str = pw_properties_get(props, PW_KEY_MEDIA_CLASS)) == NULL) {
pw_properties_set(props, PW_KEY_MEDIA_CLASS, "Audio/Sink");
pw_properties_set(source_props, PW_KEY_MEDIA_CLASS, "Audio/Sink");
pw_properties_set(props, PW_KEY_MEDIA_CLASS, "Audio/Source");
pw_properties_set(source_props, PW_KEY_MEDIA_CLASS, "Audio/Source");
}
if ((str = pw_properties_get(props, "local_ip")) != NULL) {