mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2026-03-30 11:10:29 -04:00
pulse-server: add stream_properties for RTP streams
This commit is contained in:
parent
54923bf5bd
commit
b51755bc8b
2 changed files with 7 additions and 1 deletions
|
|
@ -26,7 +26,8 @@
|
||||||
static const char *const pulse_module_options =
|
static const char *const pulse_module_options =
|
||||||
"sink=<name of the sink> "
|
"sink=<name of the sink> "
|
||||||
"sap_address=<multicast address to listen on> "
|
"sap_address=<multicast address to listen on> "
|
||||||
"latency_msec=<latency in ms> ";
|
"latency_msec=<latency in ms> "
|
||||||
|
"stream_properties=<properties for the stream> ";
|
||||||
|
|
||||||
#define NAME "rtp-recv"
|
#define NAME "rtp-recv"
|
||||||
|
|
||||||
|
|
@ -141,6 +142,8 @@ static int module_rtp_recv_prepare(struct module * const module)
|
||||||
pw_properties_set(stream_props, PW_KEY_TARGET_OBJECT, str);
|
pw_properties_set(stream_props, PW_KEY_TARGET_OBJECT, str);
|
||||||
if ((str = pw_properties_get(props, "latency_msec")) != NULL)
|
if ((str = pw_properties_get(props, "latency_msec")) != NULL)
|
||||||
pw_properties_set(stream_props, "sess.latency.msec", str);
|
pw_properties_set(stream_props, "sess.latency.msec", str);
|
||||||
|
if ((str = pw_properties_get(props, "stream_properties")) != NULL)
|
||||||
|
module_args_add_props(stream_props, str);
|
||||||
|
|
||||||
d->module = module;
|
d->module = module;
|
||||||
d->stream_props = stream_props;
|
d->stream_props = stream_props;
|
||||||
|
|
|
||||||
|
|
@ -36,6 +36,7 @@ static const char *const pulse_module_options =
|
||||||
"ttl=<ttl value> "
|
"ttl=<ttl value> "
|
||||||
"inhibit_auto_suspend=<always|never|only_with_non_monitor_sources> "
|
"inhibit_auto_suspend=<always|never|only_with_non_monitor_sources> "
|
||||||
"stream_name=<name of the stream> "
|
"stream_name=<name of the stream> "
|
||||||
|
"stream_properties=<properties for the stream> "
|
||||||
"enable_opus=<enable OPUS codec>";
|
"enable_opus=<enable OPUS codec>";
|
||||||
|
|
||||||
#define NAME "rtp-send"
|
#define NAME "rtp-send"
|
||||||
|
|
@ -199,6 +200,8 @@ static int module_rtp_send_prepare(struct module * const module)
|
||||||
pw_properties_set(stream_props, PW_KEY_TARGET_OBJECT, str);
|
pw_properties_set(stream_props, PW_KEY_TARGET_OBJECT, str);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
if ((str = pw_properties_get(props, "stream_properties")) != NULL)
|
||||||
|
module_args_add_props(stream_props, str);
|
||||||
|
|
||||||
if (module_args_to_audioinfo_keys(module->impl, props,
|
if (module_args_to_audioinfo_keys(module->impl, props,
|
||||||
"format", "rate", "channels", "channel_map", &info) < 0) {
|
"format", "rate", "channels", "channel_map", &info) < 0) {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue