• R/O
  • HTTP
  • SSH
  • HTTPS

Commit

Tags
No Tags

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

Pipewireパッケージ(ちょっと変更)


Commit MetaInfo

Revisão142b660e7bdaadae7d2f858c4d97fa580816b112 (tree)
Hora2023-11-14 23:06:42
AutorWim Taymans <wtaymans@redh...>
CommiterWim Taymans

Mensagem de Log

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

Mudança Sumário

Diff

--- a/src/modules/module-raop-sink.c
+++ b/src/modules/module-raop-sink.c
@@ -1854,6 +1854,8 @@ int pipewire__module_init(struct pw_impl_module *module, const char *args)
18541854 if (pw_properties_get(props, PW_KEY_NODE_NAME) == NULL)
18551855 pw_properties_setf(props, PW_KEY_NODE_NAME, "raop_sink.%s.%s.%s",
18561856 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);
18571859 if (pw_properties_get(props, PW_KEY_NODE_DESCRIPTION) == NULL)
18581860 pw_properties_setf(props, PW_KEY_NODE_DESCRIPTION, "%s", name);
18591861 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)
18911893 copy_props(impl, props, PW_KEY_NODE_VIRTUAL);
18921894 copy_props(impl, props, PW_KEY_MEDIA_CLASS);
18931895 copy_props(impl, props, PW_KEY_MEDIA_FORMAT);
1896+ copy_props(impl, props, PW_KEY_MEDIA_NAME);
18941897 copy_props(impl, props, "net.mtu");
18951898 copy_props(impl, props, "rtp.sender-ts-offset");
18961899 copy_props(impl, props, "sess.media");