diff --git a/src/examples/audio-capture.c b/src/examples/audio-capture.c index b5f9d82bf..3a6658b9d 100644 --- a/src/examples/audio-capture.c +++ b/src/examples/audio-capture.c @@ -143,6 +143,7 @@ int main(int argc, char *argv[]) * the data. */ props = pw_properties_new(PW_KEY_MEDIA_TYPE, "Audio", + PW_KEY_CONFIG_NAME, "client-rt.conf", PW_KEY_MEDIA_CATEGORY, "Capture", PW_KEY_MEDIA_ROLE, "Music", NULL); diff --git a/src/pipewire/filter.c b/src/pipewire/filter.c index 0561b9c86..6dbf050ea 100644 --- a/src/pipewire/filter.c +++ b/src/pipewire/filter.c @@ -1334,7 +1334,7 @@ pw_filter_new_simple(struct pw_loop *loop, if (props == NULL) return NULL; - context = pw_context_new(loop, NULL, 0); + context = pw_context_new(loop, pw_properties_copy(props), 0); if (context == NULL) { res = -errno; goto error_cleanup; diff --git a/src/pipewire/stream.c b/src/pipewire/stream.c index db2c3f7b7..39e603b2d 100644 --- a/src/pipewire/stream.c +++ b/src/pipewire/stream.c @@ -1595,7 +1595,7 @@ pw_stream_new_simple(struct pw_loop *loop, if (props == NULL) return NULL; - context = pw_context_new(loop, NULL, 0); + context = pw_context_new(loop, pw_properties_copy(props), 0); if (context == NULL) { res = -errno; goto error_cleanup;