Pipewireパッケージ(ちょっと変更)
Revisão | 142b660e7bdaadae7d2f858c4d97fa580816b112 (tree) |
---|---|
Hora | 2023-11-14 23:06:42 |
Autor | Wim Taymans <wtaymans@redh...> |
Commiter | Wim Taymans |
modules: make better media.name for RAOP sink
Use the destination in the media.name so that it becomes unique and the
volumes can be restored per destination.
Fixes #3801
@@ -1854,6 +1854,8 @@ int pipewire__module_init(struct pw_impl_module *module, const char *args) | ||
1854 | 1854 | if (pw_properties_get(props, PW_KEY_NODE_NAME) == NULL) |
1855 | 1855 | pw_properties_setf(props, PW_KEY_NODE_NAME, "raop_sink.%s.%s.%s", |
1856 | 1856 | hostname, ip, port); |
1857 | + if (pw_properties_get(props, PW_KEY_MEDIA_NAME) == NULL) | |
1858 | + pw_properties_setf(props, PW_KEY_MEDIA_NAME, "RAOP to %s", name); | |
1857 | 1859 | if (pw_properties_get(props, PW_KEY_NODE_DESCRIPTION) == NULL) |
1858 | 1860 | pw_properties_setf(props, PW_KEY_NODE_DESCRIPTION, "%s", name); |
1859 | 1861 | if (pw_properties_get(props, PW_KEY_NODE_LATENCY) == NULL) |
@@ -1891,6 +1893,7 @@ int pipewire__module_init(struct pw_impl_module *module, const char *args) | ||
1891 | 1893 | copy_props(impl, props, PW_KEY_NODE_VIRTUAL); |
1892 | 1894 | copy_props(impl, props, PW_KEY_MEDIA_CLASS); |
1893 | 1895 | copy_props(impl, props, PW_KEY_MEDIA_FORMAT); |
1896 | + copy_props(impl, props, PW_KEY_MEDIA_NAME); | |
1894 | 1897 | copy_props(impl, props, "net.mtu"); |
1895 | 1898 | copy_props(impl, props, "rtp.sender-ts-offset"); |
1896 | 1899 | copy_props(impl, props, "sess.media"); |